It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming HTML Forum

html select "onchange" does not work in firefox

html select "onchange" does not work in firefox

Postby tom.a.baker on Tue Mar 20, 2007 11:42 pm

Hi everyone,

I have a JSP with the following select box:

Code: Select all
<form id="ampForm" method="POST" action="AMPSearch">
    <select size="10" name="amp" onchange="ampForm.submit()" class="listbox">
        <c:out escapeXml="false" value="${requestScope.ampList}" />
    </select>
</form>


In IE7 and Opera this select box works and when the user selects a value it is submitted. However, in Firefox 2.0 everything works except when a value is selected nothing happens/the form is not submitted.

Does Firefox not recognise the onchange attribute? What should I use instead?

Any help much appreciated,
tom.a.baker
 
Posts: 0
Joined: Tue Mar 20, 2007 11:35 pm

Postby generalchaos316 on Wed Mar 21, 2007 4:35 am

I know nothing (yet) about Java but it might serve you well to also post in the Java forum:

java-forum-vf47.html

8)
generalchaos316
100+ Club
 
Posts: 101
Joined: Fri Mar 16, 2007 6:01 am


Who is online

Users browsing this forum: No registered users and 6 guests