I have a HTML page where I want one button to increase the font size and the same button to decrease the font size when clicked.
I am using jQuery like so:
$("p").css("font-size","20")
However, when I do that the font size increases for maybe 2 seconds and then goes back to normal. It appears that the page is refreshing after I click the button... Why is that?