Determine how many select elements are on form after removing one
<p>All,
I'm removing some select options with jQuery using the following code:</p>

<pre><code>$('#other_liked_vendors option[value=' + clicked_id + ']').remove();
length = $("#other_liked_vendors").val().length;
alert(length);
if($("#other_liked_vendors").val().length === 0){
    $("#view_other_liked_vendors").hide();
}
</code></pre>

<p>I'm basically trying to say if the last select element has been removed then I'd like to hide the div that the select element is in. Can anyone show me how to check this correctly?</p>

<p>Thanks!</p>
