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

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -