jquery - how to create a radio button in jqgrid -
this jqgrid cheack box not take value @ time of click submit button please 1 me..
edittype:'custom', editoptions: { custom_element: function() { var elemstr = '<div class="col-xs-3">'+ '<label>'+ ' <input type="checkbox" class="ace ace-switch ace-switch-4" name="alternatemobilenumber">'+ ' <span class="lbl"></span>'+ '</label>'; return $(elemstr)[0]; }, custom_value: function(elem) { var op = ($('input[name="alternatemobilenumber.value()"]').attr('checked'))? "1":"0"; return op; } },
change custom value function
like,
custom_value: function(elem) { var op = $('input[name="alternatemobilenumber"]').prop('checked') ? "1" : "0"; return op; }
Comments
Post a Comment