javascript - Chrome not recognizing jquery plugin -


i trying use jquery autocomplete plugin in application.

it works on ie , ff

chrome behaving wierdly , not calling function.

<script type="text/javascript" src="/gim-webui/jquery/jquery-latest.js">jquery.noconflict();</script> <link rel="stylesheet" href="/gim-webui/jquery/autocomplete-main.css" type="text/css" /> <script type="text/javascript" src="/gim-webui/jquery/autocomplete.js"></script> 

i kept alert dialog box in autocomplete function. both ff , ie pop alert message not chrome. doing wrong here?

its erroring out when call .autocomplete on dom element. thank you.

i suspect problem here:

<script type="text/javascript" src="/gim-webui/jquery/jquery-latest.js">jquery.noconflict();</script>                               -^-                                      -^- 

a script tag may either have src attribute or have code content, not both; docs:

if there src attribute, element must either empty or contain script documentation matches script content restrictions.

i suspect want:

<script type="text/javascript" src="/gim-webui/jquery/jquery-latest.js"></script> <script type="text/javascript">jquery.noconflict();</script> 

...but if want jquery not use $ symbol (e.g., you'll use jquery symbol instead).

off-topic: chrome has set of tools built-in helping diagnose problems. press ctrl+shift+i see them (or select developer tools wrench menu in upper right-hand corner). can errors in console, set breakpoints, walk through code in debugger, etc...


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -