Code: Select all
$j('#inactive').on('change', function(){
var inactive_v = $j('#inactive').val();
if (inactive_v == 1 ){
alert('Attention ! Before check this control verify that the user is not connected.');
}
});
ALex
Code: Select all
$j('#inactive').on('change', function(){
var inactive_v = $j('#inactive').val();
if (inactive_v == 1 ){
alert('Attention ! Before check this control verify that the user is not connected.');
}
});
Code: Select all
var inactive_v = $j('#inactive').prop('checked');
Code: Select all
var FIELDNAME_is_checked = $j("#FIELDNAME").prop("checked");
Code: Select all
$j("#FIELDNAME").prop("checked", true);
Code: Select all
$j("#FIELDNAME").prop("checked", false);
[code]...[/code]
blocks for better readability[code]...[/code]
blocks for better readability