Skip to content
Advertisement

JQuery UI dialog : TypeError: a(…).parents(…).andSelf is not a function

I’m new to jquery and I wanted to add a dialog to my page when a function is called. Whenever I call this function from the console, the dialog shows up but with the error below. What did it mean and how to solve it ?

JavaScript

I’v used these jquery libraries :

JavaScript

And the function I called is this one :

JavaScript

I know that this append is quite weird but it was just to try the dialog.

Advertisement

Answer

andSelf is deprecated and removed – use newer JQUI

Also always use the HTTPS versions

JavaScript
JavaScript
JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement