views:

40

answers:

0

Here is a small blurb from a JavaScript function I have.

ddl.options[i].selected = true;
document.forms[0].submit();

A link is clicked, which changes a dropdown value and then submits a form. The problem is that in IE6/7/8, it seems the form is submitted before the dropdown selection is made. The weird part is that this only happens once, the first time the link is clicked.

Any ideas?