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

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -