check if option in a select dropdown is available
<p>this might be related to <a href="http://stackoverflow.com/questions/149573/check-if-option-is-selected-with-jquery-if-not-select-a-default">this question</a></p>

<p>I have a dropdown menu that outputs a option list. In some cases the backend script outputs no options for the select tag.</p>

<p>I want to run a js/jquery that checks for the existence of option tags. If option tag available do nothing If no option tag available run function X.</p>

<p>Cheers</p>
