I have a span with the id of mySpan. I am trying to change the font-size of it via jquery like this:
$("#mySpan").css("font-size", "50px");
I have also tried this
$("#mySpan").css("font-size", 50+"px");
But nothing happens, I can change the color of the span like this:
$("#mySpan").css("color","#ff0000");
What am I doing wrong?
$(function(){ $("#mySpan").css("color","#ff0000"); })