jkoonsman
asked on
onchange not working for Dynamic Selects in firefox
Hello,
I am using the following code for dynamic selects in my php applicacation using Smarty Templates:
<form action="/php/Contact-Displ ay.php" method="post" name="filter" id="filter" onsubmit="document.getElem entById('r eturn_rows ').value=d ocument.ge tElementBy Id('rowsSe lect').val ue;">
<select name="leadsourceFilter" id="LeadSourceId" onchange="document.getElem entById('f ilterKey') .value=thi s.id; document.getElementById('f ilterValue ').value=t his.value; document.getElementById('s earch').va lue=''; document.getElementById('c urrent').v alue='0'; document.forms.filter.subm it();">
<option value="">Select</option>
{if $filterKey=="LeadSourceId" }{html_opt ions values=$leadSourceIds output=$leadSourceNames selected=$filterValue}{els e}{html_op tions values=$leadSourceIds output=$leadSourceNames}{/ if}
</select>
I am using the following code for dynamic selects in my php applicacation using Smarty Templates:
<form action="/php/Contact-Displ
<select name="leadsourceFilter" id="LeadSourceId" onchange="document.getElem
<option value="">Select</option>
{if $filterKey=="LeadSourceId"
</select>
try onclick along with onchange
ASKER
Thank you for your quick response:
Not sure I am following you, how do you use them together?
Not sure I am following you, how do you use them together?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Sorry but I tried this and it worked one time in IE then could not reselect. It did not work at all in FF.
Thank you.
Thank you.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I am going to try ajax vs javascript.