JSFiddle - React, Tailwind, and code Playground
HTML
<span id="a">click to make font bigger</span>
<div id="p_content">
Echo apis are created to simulate Ajax calls: /echo/json/ for JSON, http://jsfiddle.net/echo/jsonp/ for JSONP, /echo/html/ for HTML and /echo/xml/ for XML. ...
</div>
CSS
#a{cursor:pointer;color:#390}
#p_content{font-size:14px}
JavaScript
$(function(){
$("#a").click(function(){
var s=$('#p_content').css("font-size");
s+=4;
$('#p_content').css("font-size",s+"px");
})
})