Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

change checkbox jquery alert

$('#checkbox1').mousedown(function() {
    if (!$(this).is(':checked')) {
        this.checked = confirm("Are you sure?");
        $(this).trigger("change");
    }
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #change #checkbox #jquery #alert
ADD COMMENT
Topic
Name
8+2 =