Using jquery to check if radio was changed -


I was trying to trigger an incident using the jquery radio button but it is also used as a warning , I have the following on jsfiddle. Am I forgetting something? Change (function () (if ($ (this) .is (":" is checked) $ ("p"). Css ("color": "red"); and $ ("p") CSS ("color": "black");}); Colon issue, by commas, because you are using a radio button,

You should check in my opinion for a click instead of change I have made some updates to your JSFiddle that checks the clicks, radio, and then Color changes appropriately.


Comments