Jump to content

firefox issue with onchange


prakash

Recommended Posts

I have following code on my page that will retrieve and change the value inside <div>

 

<select name="myselect1" onChange="javascript: MyAjaxRequest('testDiv','ajax.php?doc=doc1&selectvalue=','myselect1')">
<option value="">Please Select</option>
<option value="1">Value 1</option>
<option value="2">Value 2</option>
</select>

<div id="testDiv">Please first select options.</div>

 

The same code works on IE7 but doesn't work on FF.

 

Could anyone help me to solve this issue

Link to comment
https://forums.phpfreaks.com/topic/144318-firefox-issue-with-onchange/
Share on other sites

First off, I would change

 

<select name="myselect1" onChange="javascript: MyAjaxRequest('testDiv','ajax.php?doc=doc1&selectvalue=','myselect1')">

 

to

 

<select name="myselect1" onchange="MyAjaxRequest('testDiv','ajax.php?doc=doc1&selectvalue=','myselect1')">

 

 

 

Second off, I'm sure the error is in MyAjaxRequest.  We need to see the code for that.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.