$.each($("select"), function(){ 'i dont work' });

$.each($("select"), function(){ 'i dont work' });

I'm trying to loop through the <select> items on the website but it does not work. How can i fix this?


<select name="X" onchange="go()">
        <option value="result">Result</option>
</select>


function go()
{
$.each($("select"), function(){
alert($(this).val();
});
}