0
votes

In the select option, I used onChange form submit like below:

<form name="onchange" method="post" action="samepage.jsp">
    <select name="n1" onchange="document.onchange.submit()">
    <option value="A">A</option>
    <option value="B">B</option>
    </select>
</form>

After selecting an option, I can get the parameter of select option then I can use that parameter to get user names from database and all data will display at same page. It is working fine at eclipse but not showing user name (database values) in Internet Explorer. It is displaying blank. I want to display names without submit button.

2

2 Answers

1
votes

Try:

document.forms['onchange'].submit();
0
votes

Try

document.getElementsByName('onchange')[0].submit();