<form class="form-inline" action="javascript:function()" >
<input id="searchKey2" type="text" class="pageSearchBar " >
</form>
I have an input search bar like the above, each time I search I want the search query to be deleted from the bar but I am not sure on how to do it in JavaScript.
Also is there a way to set the form value, except document.getElementById('id').innerHTML?
if you want to set the form field, you can do this