this is my custom style code:
table.table tr td{
padding:30px;
border-left: double 1px white;
border-bottom: double 1px white;
cursor:cell;
}
and below is the jQuery script I am using:
$(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);
});
})
In this code, I log the value before and after adding 10
The Issue
When I try to log the initial padding value in Firefox firebug, it shows me an empty string
instead of 30
. This is not the expected behavior. What could be the reason for this discrepancy?