jQuery Autocomplete plugin not working with jQuery 1.4.1 -


I am using the JQuery AutoComplete plugin with JQuery version 1.3.2, and it's working great I recently updated JQuery to my project in version 1.4.2, and the autocomplete plugin is now broken. JQuery code is not available at all to add items to a text box on my web page. Is the jQuery AutoComplete plugin incompatible with JQuery version 1.4.2, and if there is a fix for this problem, does anyone know? Here is some sample code that I created in the ASP.NET web site (which is okay, if I change jquery-1.3.2.js to the JQuery file, but nothing would be using jquery-1.4.2.js ):

  & lt;% @ Page Language = "C #" AutoEventWireup = "true" codeFile = "Default.aspx.cs" Inheritance = "_default"%> & Lt ;; DOCTYPE HTML PUBLIC "- // W3C // DTT XHTML 1.0 Transcription // N" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> & Lt; Html xmlns = "http://www.w3.org/1999/xhtml" & gt; & Lt; Head runat = "server" & gt; & Lt; Title & gt; Untitled Page & lt; / Title & gt; & Lt; Script type = "text / javascript" src = "js / jquery-1.4.2.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "js / jquery.autocomplete.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; $ (Document) .ready (function () {var data = "Core selector features: Traversing Manipulation CSS Event Effects Ajax Utilities" .split (""); $ (': input: text: id $ = sapleUser'). Autocomplete ( Information);     }); & Lt; / Script & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Form id = "form1" runat = "server" & gt; API reference: & lt; Input id = "sapleUser" autocomplete = "off" type = "text" runat = "server" /> (Try "C" or "E") & lt; / Form & gt; & Lt; / Body & gt; & Lt; / Html & gt;  

It turns out that the auto-complete plugin is available in JQuery VER 1.4.1 and 1.4 Compatible with .2. The problem was due to my JQuery selector: $ (': Input: text: id $ = sapleUser'), which appears to not be compatible with JQuery 1.4.x versions. I modified the selector to: $ ('input [id $ = sapleUser]'), and it is working again now.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -