jquery latest conflict, having difficulty troubleshooting -


Hello Thanks for all and any help

I am working on a website which is a Gives global references template which calls jquery-latest-min.js

Before you ask, the version will change beyond my control.

After several hours of troubleshooting some jquery code, I found that the removal of the latest call for jquery will work again in the code, although when it is broken, the following code returns the correct option index Will not If you remove jquery latest, then it works. & lt; Html & gt; & Lt; Top & gt; & Lt; Script type = "text / javascript" src = "jquery-1.4.4.min.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "jquery-latest-min.js" & gt; & Lt; / Script & gt; & Lt ;! - This is a caching - & gt; & Lt; Script type = "text / javascript" & gt; Click $ (function () {$ ("div.click") (function () {selectOptionIndex = $ ("# mySelect option: selected"). Index (); Alert (Selected OceanIndex); // "0"} );}); & Lt; / Script & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Select id = "myselect" & gt; & Lt; Option value = "" & gt; 0 & lt; / Options & gt; & Lt; Option value = "" & gt; 1 & lt; / Options & gt; & Lt; Option value = "" & gt; 2 & lt; / Options & gt; & Lt; Option value = "" & gt; 3 & lt; / Options & gt; & Lt; / Select & gt; & Lt; Div class = "click" & gt; & Lt; / Div & gt; Click & lt; / Body & gt; & Lt; / Html & gt;

Is anything wrong, or is there a problem with jquery? Specifically the version here is v1.3.2

If you are including two versions of jQuery, That which probbaly cause conflict.

  & lt; Script type = "text / javascript" src = "jquery-1.4.4.min.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "jquery-latest-min.js" & gt; & Lt; / Script & gt;   

If you just need one, try removing jquery-1.4.4.min.js.

Comments