I'm trying to rename a text with the click event and then "swoop" in the second click, I got the hint from a code I'd already seen on codepen , I'm passing two functions to the click event, but only the second one works, code:
$('.texto').click(function() {
alert(1);
}, function() {
alert(2);
}
);
Only alert (2) appears, why does this happen?