Wednesday 17 December 2014

Selects only one Radio Button at A time. no one way possible.

/*
Selects only one Radio Button at A time. no one way possible.
if using different names..
and we cannot apply onclick event on input

$(document).on('pageinit', function () {
    $(document).on('change', '[type=radio]', function (e) {
        $('[type=radio]:checked').prop('checked', false).checkboxradio('refresh');
        $(this).prop('checked', true).checkboxradio('refresh');
    });
});



<tr><td class=m>Check In<input type="checkbox" name="_fid_28" onclick="document.qdbform._fid_29.checked=false;"</td>

<tr><td class=m>Check Out<input type="checkbox" name="_fid_29" onclick="document.qdbform._fid_28.checked=false;"</td>
*/

No comments:

Post a Comment