Weird selector issue
<p>i have this code :</p>

<pre><code>&lt;li&gt;Oui&lt;input name="antecedents" value="1" type="radio" style="margin-right: 10px;" onclick="console.log($('#antecedents').value);"/&gt;&lt;/li&gt;
&lt;li&gt;Non&lt;input name="antecedents" value="2" type="radio" style="margin-right: 10px;" checked="checked" onclick="console.log($('#antecedents').value);"&gt;&lt;/li&gt;
</code></pre>

<p>When i click, i got "undefined" in the console, btw, if i use this.value in the console.log() i have the right result.... </p>

<p>If some see something wrong here with the selector... sometimes fresh eyes are better.</p>

<p>Thanks in advance guys.</p>