I have a JavaScript method which calls a jQuery function inside :
function diyalog()
{
$(function() {
$( "#dialog" ).dialog();
});
}
And I get this error :
TypeError: $(...).dialog is not a function
How can I call this jQuery method from my JavaScript method properly. Thanks.