I am integrating a popup but getting below error:
jquery.js:259 Uncaught Error: cannot call methods on modal prior to initialization; attempted to call method 'openModal'
If you are using the below code then try to replace it with the given code.
$("#modelDivId").modal("openModal");
Replace with
$('#modelDivId').modal(options).modal('openModal');
Thank you even i had the same problem and replacing the given code has worked for me
jQuery(".modal .close ").trigger("click");
Another solution: this is worked for me.