title: jQuery get the selected dropdown value on change
body: <p>I'm trying to get the value of a dropdown on change (and then change the values in a second dropdown).</p>
  
  <p><strong>EDIT:</strong> Thanks for all the replies, i've updated to add the () but the code is returning nothing, not null or undefined just a blank alert window</p>
  
  <p>However when I alert it out the attr(value) is undefined.</p>
  
  <p>Any ideas on what i'm missing?</p>
  
  <p>Here is my code:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
              $(document).ready(function() {
  
                  var roomID = "0"
                  $('.dropone').load('ajaxdropdown.aspx');
                  $('.droptwo').load('ajaxdropdown.aspx?drpType=room&amp;roomid=' + roomID);
  
                  $('.dropone').change(function() {
                  var ts = new Date().getTime();
                  alert($(this).val)
  
                      $(".droptwo").empty();
                      $(".droptwo").load("ajaxdropdown.aspx?drpType=room&amp;roomid=" + $(this).attr("value") + "&amp;ts=" + ts);
                  });
  
              });        
          &lt;/script&gt;
  </code></pre>