I have experienced the following problem with jQuery and Chrome.
I have a pair of selections and my function is called. Replace the selection. Everything is fine, after that I cross the next selection element and filter options. [Select> Options].
I call jQuery.hide () on the filtered option and if the value is ok then I call jQuery.show () to show the elements.
The problem is, when I call jQuery.show (), I see a change in my page source (Developer Console), but on my webpage, the selection is still empty.
I tried the selected attribute on the option, then choosing an option and showing, only one.
Using Chrome 41.x everything works fine in Firefox. Thnks
itemprop = "text">
Not sure how your code looks, but it works fine in Chrome. ("Change", function {sourceVal = parseInt (this.value); $ ("# target" gt; option). (Function () {curr = parseInt (this.value); if (curr% sourceVal = = 0) {$ (this). Show ();} and {$ (this) .hide ();}})});
No comments:
Post a Comment