Return to Snippet

Revision: 37488
at December 10, 2010 21:08 by Sullan


Initial Code
$(document).ready(function() {
$('input#offer').change(function () {
    if ($(this).attr("checked")) {
        //do the stuff that you would do when 'checked'
        $('p').addClass('bold');
        return;
    }
    //Here do the stuff you want to do when 'unchecked'
    $('p').removeClass('bold');   
});

Initial URL

                                

Initial Description

                                

Initial Title
Toggle Checkbox function

Initial Tags
jquery

Initial Language
jQuery