asp.net mvc - Dialog Jquery not working -
index.cshtml code
<link href="~/content/jquery-ui.css" rel="stylesheet" type="text/css" /> <script src="~/scripts/jquery-1.10.2.js" type="text/javascript"></script> <script src="~/scripts/jquery-ui.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function () { $("#finestra").dialog({ autoopen: false }); }); </script> <div> <p> jquery dialog test </p> <div id="finestra" title="test"> <div>content</div> </div> </div>
i getting 0x800a01b6
- javascript runtime error: object doesn't support property or method 'dialog' error
. have added jquery 1.11.4 reference. checked other similiar questions not find problem causing.
public static void registerbundles(bundlecollection bundles) { bundles.add(new scriptbundle("~/bundles/jquery").include( //"~/scripts/jquery-{version}.js", "~/scripts/jquery-ui.js")); }
i commented "~/scripts/jquery-{version}.js"
code didnot refer older jquery , worked.
Comments
Post a Comment