Reputation: 615
I am new in jQgrid coding. I have implemented Toolbar searching in my jQGrid. In that I want to add clear search button or you can say RESET button next to search textbox like this
How I achieve this??? I search a lot about this on internet but I didn't found something relevant to achieve this. I am using jQgrid 4.4.4 & jQuery 1.8.3.
Upvotes: 2
Views: 3923
Reputation: 221997
You should update jqGrid to the last version 4.5.4. It has implemented the feature which you need. New property clearSearch: false
in colModel
can be used to remove clear search button in some columns.
Upvotes: 3
Reputation: 1929
try this
$('#delete-button').click(function(){
$('#input-field').val("");
});
Here is an example DEMO
Upvotes: 0