getting undefined while trying to get selected radio value
<p>I have the following code</p>

<pre><code>&lt;input type="radio" class="radioModal" value="Existing" name="SaveToGallery_rdGallery" id="SaveToGallery_rdGallery"&gt;

&lt;input type="radio" class="radioModal" value="New" name="SaveToGallery_rdGallery" id="SaveToGallery_rdNewGallery"&gt;
</code></pre>

<p>When i am trying to get the selected radio value , i am getting undefined</p>

<pre><code>alert($("input[@name='SaveToGallery_rdGallery']:checked").val())
</code></pre>

<p>jsfiddle here</p>

<p><a href="http://jsfiddle.net/8F6Uq/" rel="nofollow">http://jsfiddle.net/8F6Uq/</a></p>

<p>May i know where am i doing wrong</p>

<p>Sometimes i get value like "N"</p>
