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
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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.