I am trying to set an incidence fire when the user clicks on and on on two sets of radio buttons
So when a user clicks on the first and warnings about it, then
says that when a user clicks on a warning, he says that the shutdown < / P>
When the user clicks on another, its warning pops, which ON1 says when it closes it OFF2
says that when they say something else on ON and ON and on ON
$ ('. Radio button '). Click (function (e) {selected = $ (this) .val (); if (selected === '(warning (' on ')} and if (selected ===' closed ') {warnings (' Closed ')} and if (selected ===' on1 ') {warning (' 1 ')} and if (selected ===' off1 ') {warning (' off1 ')} and if (selected == = 'On' & amp; amp; 'on1') {warning ('on and')}});
How to check for each set:
var oneOn = $ ('input: radio [name = one]: checked') Val (); Var twoone = $ ('Input: radio [name = two]: check'). Val (); Finally:
if (anon === 'on' and two on === 'on1') {Warning ("Yes!" ); } Your basic approach can not work because "selected" can not contain two different values at once.
No comments:
Post a Comment