I have a script that once a button is clicked it displays specified text in a span below.
How can I use this to check if a checkbox is checked and display text accordingly?
I’ve tried so many different ways to no avail.
http://jsfiddle.net/jamesil/w5bdX/
A point in the right direction would be much appreciated!
I have a script that once a button is clicked it displays specified text
Share
you miss
)afterif ($('#checkbox-1').is(":checked"))working demo