jquery: how to get the value of id attribute?
<p>Basic jquery question. I have an option element as below. </p>

<pre><code>&lt;option class='select_continent' value='7'&gt;Antarctica&lt;/option&gt;
</code></pre>

<p>jquery</p>

<pre><code>$(".select_continent").click(function () {
  alert(this.attr('value'));
});
</code></pre>

<p>This gives an error saying this.attr is not a function so im not using "this" correctly.</p>

<p>How can i get it to alert 7?</p>
