this is my css
table.table tr td{
padding:30px;
border-left: double 1px white;
border-bottom: double 1px white;
cursor:cell;
}
and this is my jquery code:
$(document).ready(function () {
$("#zoomIn").on('click', function () {
var previousValue = $(".table tr td").css("padding");
console.log(previousValue);
previousValue = previousValue + 10;
console.log(previousValue);
$(".table tr td").css('padding', previousValue);
});
})
as you see, i log the value before adding 10 and after adding 10
my problem
the first log gives me an empty string in firefox firebug. However, it should have given me 30
what have i missed please?