Checkbox not opening dialog
I have a problem...(relative newbie here) I want a dialog to open when i check a checkbox
My code is:
- <input type="checkbox" id="actionneeded" /><label for="actionneed">Action Needed</label>
- <div id="dialog-form">
- <p>Test Dialog</p>
- </div>
- <script type="text/javascript">
- $(document).ready(function() {
- var dialog = $("#dialog-form").dialog({
- autoOpen: false,
- height: 300,
- width: 350,
- modal: true
- });
- $("#actionneeded").click(function(e) {
- dialog.dialog('open');
- e.preventDefault();
- });
- });
- </script>
but when i load the page I get a TypeError: $(...).dialog is not a function message from firefox
and the line number points to the "modal:true" line
What am i doing wrong
any and all help as always will be muchly appreciated...
4