Hi, I try to catch selected choice in my dropdown inside IE7.

<span id="prefix">
  <select>
    <option value="1">08:00 - 16:30&nbsp;&nbsp;(8:00h)</option>
    <option value="2">09:00 - 17:30&nbsp;&nbsp;(8:00h)</option>
  </select>
</span>

In my jQuery-function I use this to set the value to my string
"timecode":
$(document).ready( function() {
        $('#prefix option').click( function() {
                timecode = $(this).val();
        });
});

It´s works fine in FF but not in IE. How can I get the chosen thing
inside IE to my variable "timecode"?

Best regards
Tommy

Reply via email to