Question

J'ai un paramètre qui est annexé à l'URL.En fonction de la valeur de ce paramètre, j'ai besoin de simuler un clic sur un élément Dropdowbox.J'ai essayé d'utiliser l'index sélectionné et ça marche.Cependant, lors de l'utilisation de l'index sélectionné, il ne fonctionne pas comme un clic et j'ai une fonctionnalité qui n'est affichée que lorsqu'il y a un clic sur l'élément déroulant.

L'URL est quelque chose comme ceci:

http://www.mydomain.com/mypage.html?paramName=paramValue

Y a-t-il un moyen de faire en sorte que je puisse y parvenir?J'ai essayé l'événement .Click () mais en vain.

Merci beaucoup

Était-ce utile?

La solution

Move the code out of the .click event handler, and call this new function from both locations (click handler & on URL parsing).

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top