I have script that removes an h4 element then animates a hidden form in its place. I am trying to check if the h4 element has been removed so that if the same button is pressed ,while the form is visible, it will then animate out.
Here is the first part of my code
$('#editMapItem h4').remove();
check the length of the selector, like this:
$('#editMapItem h4').length
if it = 0, you've removed it already.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With