I am trying to write some script that will allow the user to click on an object and each time they click it will increase in font-size by 1px.
It works fine until I try adding the while loop to add a size limit.
var fs = $(".word").css('fontSize');
$(".word").click(function() {
while (fs <= "25px") {
$(this).css('fontSize', (parseInt(fs) + 1) + 'px');
}
});