ボタンをクリックすると上のボックスの縦横サイズをアラート表示。
ボタン1はそのまま、ボタン2は parseInt() の出力結果。
ボタン1
ボタン2
$(function(){
var boxH = $('#p1').css('height');
var boxHp = parseInt(boxH);
$('#a1').click(function(){
alert(boxH);
});
$('#a2').click(function(){
alert(boxHp);
});
});