My jquery script reference are :
<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
<script src="http://code.jquery.com/ui/1.9.1/jquery-ui.js" type="text/javascript"></script>
I’m using Chrome Version 23.0.1271.64 m
– And I’m getting an error on line 338
})( jQuery ); //--> line 338 is highlighted
This is a 1st for me and looking for answers.
I’m in the process of learning how to use the API and have a simple webpage
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="CACHE-CONTROL" content="NO-CACHE" />
<meta http-equiv="PRAGMA" content="NO-CACHE" />
<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
<script src="http://code.jquery.com/ui/1.9.1/jquery-ui.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
$( "#edit-user" )
.button()
.click(function() {
$( "#dialog-form" ).dialog( "open" );
});
});
</script>
</head>
<body>
<button id="edit-user">Edit User</button>
<div id="dialog-form" title="Radio Dialog">
<form>
<fieldset>
<input type='radio' value='A' name='myRadio'>A
<input type='radio' value='B' name='myRadio'>B
<input type='radio' value='C' name='myRadio'>C
</fieldset>
</form>
</div>
</body>
</html>
With the limited information you provided I assume that you expect som kind of dialog to open, right?
Your dialog is actually already present anyway but, for the sake of seeing that something is happening, start with hiding it (but do this using .css instead when you implement it for real later on):
Then it seems like you need to create the dialog before you open it. This is most likely what stopped you from moving ahead:
Check out this jsfiddle
Hope this helps you solve whatever problem you had!