I'm trying to add the padding-top value to the css that I append in the header , but only color is working:
var PaddingTOp = $('#PaddingTOp').val();
var PaddingRight = $('#PaddingRight').val();
var PaddingBottom = $('#PaddingBottom').val();
var PaddingLeft = $('#PaddingLeft').val();
//Class Name
$("<style type='text/css'> .redbold{ color:#f00; padding-top: PaddingTOp ;} </style>").appendTo("head");
$(".container").addClass("redbold");
PaddingTOpas the value and not the contents of that variable. Use concatenation.