I'm trying to hide an element with an effect using jquery UI, but I'd like the space the element is taking to stay after the element is hidden. I don't want to use the visibility property, as I'm using an effect as follows:
$(".element").hide("explode");
I tried using this: https://api.jqueryui.com/jQuery.effects.createPlaceholder/ as follows:
jQuery.effects.createPlaceholder(".element");
However, I'm getting the following error:
Uncaught TypeError: e.css is not a function at Object.createPlaceholder (jquery-ui.js:8) at Object.success (myfile.html:317) at c (jquery.min.js:2) at Object.fireWith [as resolveWith] (jquery.min.js:2) at l (jquery.min.js:2) at XMLHttpRequest. (jquery.min.js:2)