Click here to Skip to main content
15,891,908 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
XML
<script>
     $(function () {
         $("#menu").menu();
     });
</script>


CSS
Unhandled exception at line 195, column 10 in http://localhost:51508/Index.aspx

0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'menu'

If there is a handler for this exception, the program may be safely continued.


// I have included all the JQuery libraries. Running under Visual Studio 2013
Posted
Updated 8-Oct-15 13:37pm
v2
Comments
Sergey Alexandrovich Kryukov 8-Oct-15 20:54pm    
Use some JavaScript debugger.
—SA

1 solution

There is no such thing as menu property for the object you are trying to use. This is not how programming work.

Check with this code sample, which really works: https://jqueryui.com/menu[^]. Make sure you include the jQuery-UI script, not just jQuery.

—SA
 
Share this answer
 
v2
Comments
Member 11826602 9-Oct-15 12:50pm    
JQuery-UI script is included already, but, I still get this error.
Sergey Alexandrovich Kryukov 9-Oct-15 14:35pm    
Look, the jQuery demo works, so yours should work too. It should not be any big problem. Your small code sample does not show much. Find 10 differences :-).
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900