I have been trying to use JQuery UI but cant seem to get any of the methods working.
I have been trying to show a dialog but havent been able to do it.
Jquery is workking.
I have used Firebug and i get no errors when loading the jqueryUi, Jquery files just 304 not modified status.
I dont know if im doing something stupid or i havent setup the JQuery UI right
Any help is appreciated
Heres the code that im using
<html>
<head>
<link type="text/css" href="css/ui-lightness/jquery-ui-1.8.18.custom.css"
rel="stylesheet" />
<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.18.custom.min.js"></script>
<script type="text/javascript">
if (jQuery.ui) {
alert("Success");
}
$("#dlg_hello").dialog();
</script>
</head>
<body>
<div id="dlg_hello">Hello World!</div>
</body>
</html>
You have to capture the page load event to instantiate a jQuery UI object.
try this: