1

In an ASP.net program, there is a UserControl that has a Master Page and this jquery isn't working, I get "Object doesn't support this property or method" The paths are correct. When I comment out the autocomplete line I get no errors. No other js files extend autocomplete When I have the exact code in a sample project it works!!! It's like it can't find jquery-ui-1.8.10.custom.

Ideas?

<link rel="stylesheet" href="../../CSS/jquery-ui.css" type="text/css" media="all" />
<script src="../../js/jquery-1.4.1.js" type="text/javascript"></script>
<script src="../../js/jquery-ui-1.8.10.custom.js" type="text/javascript"></script>

<script language="javascript" type="text/javascript">
    $(document).ready(function() {    
    $("input#companyListDropDown").autocomplete({
        source: ["c++", "java", "php", "coldfusion", "javascript", "asp", "ruby"]
       });   
   });
</script>
4
  • Please post the relevant HTML markup excerpt, where the input 'companyListDropDown' (why would a input have dropdown in its name)... Commented Apr 18, 2011 at 20:28
  • <input type="text" id="companyListDropDown" /> Commented Apr 18, 2011 at 20:30
  • because as you type it shows options based on what you type Commented Apr 18, 2011 at 20:31
  • I know samples work with you too, but anyways, this works fine - jsfiddle.net/FloydPink/XCpGH Commented Apr 18, 2011 at 20:33

1 Answer 1

2

there was more than one version of jquery loaded in the porject and that makes jquery ui freak out. With only one version of jquery autocomplete works

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.