I am fetching value from database which append to radio button in jqgrid like
formatter: function (cellValue, option){
return '<input type="radio" name="subradio" id="subradio"/>';
}
beforeSelectRow: function (rowid, e) {
getcurrpatta(rowid);
},
Now, the radio button populates if I click a radio. One function has been called. But if I click the same radio button again it has to disable no function call again then i go for other click radio button the old one have to enable how to do this???
This is the javascript code
$('input').each(function() {
$(this).click(function() {
$('input').removeAttr('disabled');
$(this).attr('disabled', 'disabled');
});
});
Demo: jsFiddle
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.