I am currently using the cur_font class in my CSS stylesheet. I would like to switch the font-family to 'arial' using jQuery and have this new font apply to the html, body, h2, h1, div, and td selectors.
<style>
.cur_font html,body,h2,h1,div,td { font-family:'tahoma'; }
</style>
<script>
$(".change_font").on("click", function (e) {
var font='arial';
$("style.cur_font").css("font-family",font);
});
</script>
I am attempting to update the font-family property for the cur_font class using jQuery