Getting selected option data
<p>I am trying to fetch data from currently selected option. I came out with this.
Could i somehow improve it or is this fine?</p>

<p>Im specially not sure about the current option selector.</p>

<pre><code>&lt;option data-id='one'&gt;&lt;/option&gt;

....

$('select#first').change(function(){

var smth = $("option:selected",this).data('id');
alert(smth);


});
</code></pre>
