jquery - JQGrid: Enable/Disable textbox using Checkbox -


<sjg:gridcolumn name="newaction" index="newaction" title="new action:" hidden="true"    hidedlg="true"    editable="true" edittype="text" sortable="false"  editrules="{edithidden:true,required:true}"/> 

how add checkbox in same line of "newaction "so can enable/disable textbox using checkbox?

var checkbx="<input type="checkbox" id="mycheckbox"/>"; $('gridcolumn ').html(checkbx); if($('#mycheckbox').prop('checked')==true) $('#txtinput').attr('disabled',true) else $('#txtinput').attr('disabled',false) 

Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -