problem to get radio input box value in jquery
<p>guys i need to get the value of  a  input radio box  so i wrote this code </p>

<pre><code>if ($("input[@name='notify']:checked").val() == '1'){
    var notifyme=1;
} else {
    var notifyme=0;
}
</code></pre>

<p>but everytime i send the request through php function it says notifyme var is 1  and even i checked  0 radio box  it still says the value is 1 </p>

<p>html part</p>

<pre><code>&lt;input type="radio" name ='notify' value="1" &gt;YES 
&lt;input type="radio" name ='notify' value="0" &gt;NO 
</code></pre>
