I want to find a specific div with the class .factive and remove it, to add it to another div.
Here is my current code:
$('.factive').removeClass('.factive');
I know it does find the div I want (checked via Javascript Console), but it doesn't remove the class.
Any clues?
There's no .
in the actual class name, only in the selector.
$('.factive').removeClass('factive');
That will effectively remove the class factive
from all elements that have it.
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