18 lines
537 B
JavaScript
18 lines
537 B
JavaScript
function efunc(qid) {
|
|
if(qid === "ALL"){
|
|
$(document).off('click', 'td:has(input[type=radio], input[type=checkbox])').on('click', 'td:has(input[type=radio], input[type=checkbox])', function(e) {
|
|
var $input = $(this).find('input');
|
|
|
|
if (e.target === $input[0]) return;
|
|
|
|
if ($input.attr('type') === 'radio') {
|
|
$input.prop('checked', true).trigger('change');
|
|
} else if ($input.attr('type') === 'checkbox') {
|
|
$input.prop('checked', !$input.prop('checked')).trigger('change');
|
|
}
|
|
});
|
|
}// ALL
|
|
switch(qid){
|
|
|
|
}
|
|
} |