Execute something onchange checkbox
16,488
It works here so it should also work fine for you .
Which jquery version are you using ?
Author by
Edocsyl
Updated on July 22, 2022Comments
-
Edocsyl almost 2 years
Can you say me what i did wrong? When i make a function and make a onchange="function()" it works.
<input type="checkbox" name="test" value="bar" /> $('input[name=test]').change(function(){ if($('input[name=test]').is(':checked')){ alert('Checked'); } else { alert('Not checked'); } });