title: alert if option value is empty using jquery
body: <p>I am working on a add to cart button for products with attributes that can be selected via select list. Upon clicking on add to cart button I would like to check if any option is selected. If not - display an alert, if yes fly product to basket. 
  I am using this code for jquery 1.3.2</p>
  
  <pre><code> if($('#category option').length === 0) {
  alert("Please choose some option");
  }
  else 
  {
  </code></pre>
  
  <p>However, it is not working at all. Please see full code here <a href="http://jsfiddle.net/Z7Pry/92/" rel="nofollow">http://jsfiddle.net/Z7Pry/92/</a></p>