Rahul  More
Rahul More

Reputation: 615

jQgrid Toolbar search, add clear search button next to search box

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 enter image description here
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

Answers (2)

Oleg
Oleg

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

Beniamin Szabo
Beniamin Szabo

Reputation: 1929

try this

$('#delete-button').click(function(){
   $('#input-field').val("");
});

Here is an example DEMO

Upvotes: 0

Related Questions