JavaScript Code
$(window).on('resize', function(){
if ($(window).width() <= 800) {
$('textarea').css("font-size", "20x");
} else {
$('textarea').css("font-size", "30x");
}
});
I am attempting to decrease the font size within a textarea when the window width is less than 800px. Can you spot any errors in this code?