Answer the question
In order to leave comments, you need to log in
Problem with jQuery UI dialog?
Hello, dear habrausers!
Can't figure out what's causing the issue with jQuery UI 1.8.18. (jQuery 1.7.1)
$('#newnews_dialog').dialog({<br>
autoOpen: false,<br>
width: 600,<br>
buttons: {<br>
"Отмена": function() {<br>
$(this).dialog("close");<br>
},<br>
"Сохранить": function() {<br>
saveNews();<br>
}<br>
}<br>
});<br>
<br>
$('#newnews_button').click(function(){<br>
$('textarea.newnews').tinymce({<br>
script_url: base_url + 'js/tiny_mce/tiny_mce.js',<br>
theme: "simple",<br>
});<br>
$('#newnews_dialog').dialog('open');<br>
return false;<br>
}); <br>
TypeError: $("#newnews_dialog").dialog is not a function
Answer the question
In order to leave comments, you need to log in
I don't see any errors in the code you provided, maybe a conflict with tiny mce? check if id's are duplicated on the page
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question