Helpers, I'm trying to set up basic events when I click radio buttons. I have the following buttons:
<p><label for="pays">Pays now</label><input id="pays" name="pays" type="radio" value="1" class="_100"/></p> <p><label for="pays2">Pays later</label><input id="pays2" name="pays" type="radio" value="2" class="_100"/>
And I define the event as follows:
'click input[name=pays]:not(:checked)': 'radioChecked'
So, as I understand it, it should work when you click on the input with the name "pays", which is not checked.
The fact is that I do not turn off any event when I press the switch.
If I try this ...
'click input[name=pays]': radioClicked
I can fix this with some flags, but I will fire an event every time any radio station is pressed.
Any idea? Thanks!
Pablo source share