Hi Friend's need help how to clear the text box value after refresh the page ? actually i am using search text box after submit a form still displayed the value inside text box it is working fine , but i need when i refresh the page clear the value how? this is my code,
<div class="form-group" style='float:left;margin-right:10px;' id="normal_search">
{!! Form::text('search', '', array('id'=>'yearly_search_id','class' => 'form-control','placeholder'=>trans('main.search').' '.trans('main.customer.title') )) !!}
</div>
using local storage,
localStorage.yearlySearchFilter = $("#yearly_search_id").val();
$("#yearly_search_id").val(localStorage.yearlySearchFilter);
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2jzWlLd
via IFTTT
Aucun commentaire:
Enregistrer un commentaire