I've written the following code with jquery :
$('input[type="text"]').keyup(
function (event) {
// Allow: backspace, delete, tab, escape, and enter
if (event.keyCode != 68 && event.keyCode != 186) return;
var textbox = $(this);
var clickAttr = textbox.attr('click');
if (clickAttr != undefined && clickAttr.indexOf('NumericTextBoxKeyPress') > -1) return;
var insertedValue = textbox.val();
insertedValue = insertedValue.replace(/a/g, 'SampleA');
insertedValue = insertedValue.replace(/b/g, 'SampleB');
textbox.val(insertedValue);
}
);
It's OK with normal textboxes, but above code doesn't work for jQGrid filtering's textboxes !
Could you please guide me, how I can bind a keyup function to jQGrid filtering's textboxes ?