搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

In firefox the dropdown list value is getting selected but the text is not changing.

more options

In firefox and google crome the dropdown list value is getting selected but the text is not changing. But in IE its working fine.

In firefox and google crome the dropdown list value is getting selected but the text is not changing. But in IE its working fine.

所有回覆 (4)

more options

This is hard to answer without seeing the site. If it is a public page, can you post the URL and describe the steps to recreate the problem? If it's a site you're developing that isn't online yet, maybe you can describe the scenario in more detail or post a stripped-down test case.

more options

Start Firefox in Safe Mode to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).

  • Do not click the Reset button on the Safe mode start window or otherwise make changes.
more options

In the code its alright. If i inspect the code its showing the correct value selected but its not reflecting on the page.

more options

Let me see whether I understand your scenario. You are not changing the <select> control interactively with the mouse or keyboard. Instead, you are changing the value of a <select> control in JavaScript, and the control itself is not reflecting the change.

What is your code to change the value of the <select> control? I find that setting the .selectedIndex property usually works. The script at http://www.jeffersonscher.com/thailan.../food/ uses that technique when you use the left or right arrow to navigate to previous or next photo. Does it work on your Firefox and Chrome? (Press t first or click the Tools button to clear the overlay.)