problem to get radio input box value in jquery -


People need to get the value of an input radio box so I wrote this code

 < Code> if ($ ("input [name = 'notify']: checked"). Val () == '1') {var notifyme = 1; } And {var notifyme = 0; }  

But every time I send a request through the PHP function, it indicates that Notepem is the VERS 1 and even I have checked the 0 radio box, even then It says that value is 1

html part

   

(if $ ("input [name = 'notify]: checked"). Val ()) {var notifyme = 1; } And {var notifyme = 0; }

Comments