jquery - How to populate a textbox by clicked a row in a jqGrid? -


enter image description here

requirement:

1) want populate textbox data (e.g. amount: 600.0) when row in above jqgrid clicked.

can direct me tutorial ?

resources looked at:

thanks

you use onselectrow event along getcell or getrowdata methods:

$('#grid').jqgrid({     ....     onselectrow: function(id) {         var amount = $('#grid').jqgrid('getcell', id, 'amount');         $('#id_of_some_text_box').val(amount);     },     .... }); 

Comments

Popular posts from this blog

Cursor error with postgresql, pgpool and php -

delphi - ESC/P programming! -

c++ - error: use of deleted function -