0

I have a dropdown and my selected index is set by php (which works as long as javascript is disabled).

When i enable javascript, then my selected index is changed to the first option as soon as the page is loaded. Now i need to find out which piece of js changes my selected index.

Can anyone tell me please how to find this out, for example by using firebug?

Reinsch
  • 121
  • 4
  • a demo on jsfiddle could be good – elreeda Jan 03 '16 at 20:51
  • https://www.austrokamin.at/catalog/product/view/id/3265 Just take a look at the first dropdown. – Reinsch Jan 03 '16 at 20:54
  • sorry i didn't get nothing from your link, plz make a code in fiddle – elreeda Jan 03 '16 at 21:01
  • https://jsfiddle.net/5cf1jnhq/ Something changes my selected option, just like the js code there. On my website there is quite a lot of js, and i need to find out which piece of code is responsible for that. – Reinsch Jan 03 '16 at 21:10
  • what is the problem on this fiddle ? – elreeda Jan 03 '16 at 21:21
  • The problem is that on my homepage javascript code changes the selected value of the dropdown. I need to find out which js code is doing this. – Reinsch Jan 04 '16 at 06:19
  • Well in your fiddle this code `jQuery('select').val('5');` change your vaule to the value 5 – elreeda Jan 04 '16 at 07:29
  • Forget about the fiddle and take a look here: https://www.austrokamin.at/catalog/product/view/id/3265 It's the first dropdown ("Ausführung"). The selected option should be "DW Premium 1,0 mm" There must be javascript code which changes the selected option from "DW Premium 1,0 mm" to "Bitte treffen Sie eine Auswahl...." I want to find out which piece of code does this. – Reinsch Jan 04 '16 at 07:39

0 Answers0