0
I’ve changed css with jQuery, but I’d like to test a feature, in onclick it add a css, but a field :before
how could I do that?
Code working
$j("#nome-login-mobile").click(function(){
if ($j('#options-menu').is(':visible')) {
$j('#options-menu').hide();
$j('.nome-login-mobile').removeClass('changed');
} else {
$j('.nome-login-mobile').toggleClass('changed');
$j('#options-menu').show();
}
})
Take a basic look here, https://stackoverflow.com/questions/5041494/selecting-and-manipulating-css-pseudo-elements-such-as-before-and-afterusin
– Bsalvo