/ Published in: jQuery
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
 $(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'); });
Comments
                    Subscribe to comments
                
                