Here’s my jquery code. If you can’t see any flaw in it, please proceed to see JSfiddle here at http://jsfiddle.net/J4ZgB/3/ Thanks.
$(function(){
$("#a").click(function(){
var s=$('#p_content').css("font-size");
s+=4;
$('#p_content').css("font-size",s+"px");
})
})
You had two errors.. fixed code:
parseInttakes the first digits in a string and converts them to number ignoring the rest of the string.p_cont(in jsFiddle) while the real ID isp_content.Updated jsFiddle.