script works only when alert is called
I use script described here for making dynamic selectboxes (user selects something in the first box, then the options in the second box change automatically).
There was tiny problem - after form submitting was selected first option in right selectmenu (although there was selected="selected" on other option). I fixed it almost , now it works with Firefox and Opera 8, but i noticed that with IE 6 it works only when there was called alert() function :/
Examples (use IE for testing):
with alert (works)
without alert (doesn't work)
What may be solution for this strange problem?