When the user clicks on Edit in jqGrid, the form which opens has a few list boxes and text boxes. Depending on the value in a List box a couple of text boxes have to be disabled
I see many ways which you can go to implement your requirements.
The first and the best one in my opinion would be the usage of dataEvents
of the editoptions with the type:'change'
(see this answer as an example). The corresponding code can be
editoptions: { dataUrl:...,
dataEvents: [
{
type: 'change',
fn: function(e) {
var v=$(e.target).val();
alert(v); // do something with selected item value
}
}
]
}
The binding to the functions defined by dataEvents
will be after the successful return of the select
contain from the server.
Another way would be modify your current implementation so that you replace jQuery.bind to jQuery.live (see a code template here).