0
I have a <button>
on the page that after an action receives a new class, in this new class I need the text to be changed in the Hover, but it doesn’t work, the new class seems not to be recognized, someone can please help me?
After an action the class of the button changes from . see-move to . buy:
$('.see-movie').removeClass().addClass('buy').text('Gostou?Adquira já!');
In this new class when using jQuery’s Hover() resource the text needs to change:
$('.buy').hover(function(){
$(this).text('Ligue 0800 123 4567')
}, function(){
$(this).text('Gostou?Adquira já!')
});
You can show us what you got?
– BrTkCa
I have read yes, my question is not misworded.
– Munir Baarini
Use the boot edit @Munirbaarini
– BrTkCa
You can post your code so we can better understand the problem?
– Lucas de Carvalho
Please see if it’s clearer.
– Munir Baarini
to use css you would have to put :after to insert a text in the button, but to change the text you would have to use :after:Hover and it doesn’t work, correct?
– Munir Baarini
Now you’ve seen the answers?
– user60252