Why am I getting a "Type Error Dialog is not a Function" using jQuery UI? -
when click of button i'm using following code function dialog:
function confirmation(msg1){ if ($('#exportsales').length == 0) { $(document.body).append('<div id="exportsales">'+msg1+'</div>'); } else { $('#exportsales').html(msg1); } $("#exportsales").dialog({ autoopen: false, show: "blind", hide: "explode", height: 450, width: 1000, modal: true }); $( "#exportsales" ).dialog("open"); } however, when inspect in firebug showing error in console:
typeerror: $(...).dialog not function [break on error] modal: true edit: there dialog in document runs fine. when comment out 1 dialog starts working. how change code can work in same page?
this occurred because of two jquery files being included. watch out source code. may out of stupid error.
Comments
Post a Comment