Skip to content Skip to sidebar Skip to footer

JQuery - Cannot Call Methods On Dialog Prior To Initialization

This one is really bugging me. I'm getting an error in my console of Uncaught Error: cannot call methods on dialog prior to initialization; attempted to call method 'close' $( func

Solution 1:

The problem is you're calling the dialog('close') on the #submit_search_all_button button, not the #search_all_notes_input element that you originally created a dialog on.

Instead of $(this).dialog('close');, use this:

$('#search_all_notes_input').dialog('close');

Post a Comment for "JQuery - Cannot Call Methods On Dialog Prior To Initialization"