TAG
CSS
JavaScript
Result
Run
License
<h5>Click to box.</h5> <div class="box">BOX</div>
.box { width: 100px; height: 50px; border: 1px solid #FF0000; text-align: center; line-height: 50px; }
$(function() { $(".box").click(function() { var height = $(this).height(); $(this).append('
' + height); }); });
Console
expand_less
License
License
by DevDic
Close