Here is jQuery code. it works fine at xampp and my server. I would like to add this code into Laravel. Since I post here I recived kind help but still I couldn't get array value at Laravel.
Whole code is here
What I tried that I'm guessing this input field has no "name=" so I add name but it can not pass values.
<div class="fieldContainer">
<div class="btn-group">
<input type="text" class="search" data-ref="${ref}" placeholder="Type something" class="form-control" onkeypress="return event.keyCode!=13" />
<span class="search-clear glyphicon glyphicon-remove-circle" data-ref="${ref}"></span>
</div>
<ul class="list-group resultUl" data-ref="${ref}"></ul>
</div>
At xampp or with out Laravel (my server ) I can get array value using below code.
echo var_dump($_POST["search_1"]);
I wrote below code in Laravel. but I'm not sure to how to write in case of multipule array.
now I got error is
Undefined index: search_1
public function register(Request $request)
{
$post_data = $request::all();
$search_1 = $request::all();
return view('pn.conf',compact('post_data'),compact('search_1'));
}
Could someone teach me what is wrong my code please?