jquery checkbox change event
//jQuery listen for checkbox change
$("#myCheckBoxID").change(function() {
if(this.checked) {
//I am checked
}else{
//I'm not checked
}
});
jquery checkbox change event
//jQuery listen for checkbox change
$("#myCheckBoxID").change(function() {
if(this.checked) {
//I am checked
}else{
//I'm not checked
}
});
check change event in jquery
<div class="form-group">
<label class="w-20" id="loan_no_label"><?= "<font class='red'> * </font>" . __('loan-number') ?></label>
<input class="w-65 form-control" id="loan_no" required type="text" name="loan_no" />
</div>
$('#is_all_loan').on('click', function() {
var checked = $(this);
if (checked.is(':checked')) {
$('#loan_no_label').html('<?= __('loan-number'); ?>');
$('#loan_no').attr('required', false);
} else {
$('#loan_no_label').html("<font class='red'> * </font>貸款編號");
$('#loan_no').attr('required', true);
}
});
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us