I am currently trying to execute effects with jQuery. However, I do not want want to do anything like $("#something").hide(), I would like to specify the effect in a string. Here is an example:
var selector = "#myElement";
var effectString = "hide";
$(selector).effect(effectString);
I looked this code up, and apparently it did work that way, but for some reason the effect() method seems to have been removed.
My question is if there is any alternative that I could use. Or has a feature like this been intentionally removed? I am using jquery-3.2.1.
Thanks in advance for any helping thoughts.