Seems like a simple action, and it works in Firefox, but not IE...

I'm trying to change the value of a dropdown box based on an event triggered
in another text box.  It's a contact form, and I just want to change the
state dropdown Select on the keyup of the 5th character of the zip input
box.

re:
$("#zip").keyup(function(){
        if ($("#zip").val().length == 5) {
                // IE can get in here, but doesn't execute the following line
                $("#state").attr("value","FL");  // just testing for now
        }
});

As I mentioned, this works in Firefox 1.5.0.7, but not in IE6...

How do I get this going in IE?

Thanks!
--DIZZLE
-- 
View this message in context: 
http://www.nabble.com/How-to-change-value-of-select-dropdown--tf2308098.html#a6416737
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to