This is my code:
var lef=$(this).css(\"left\");
var top=$(this).css(\"top\");
alert(lef);
$(this).after(\"
I've simplified thirtydot answer. You can use this jQuery function for any property you want to add pixels.
jQuery.fn.addPixelsTo = function(property, pxls) {
return $(this[0]).css(property, (parseInt($(this[0]).css(property).substr(0,2))+pxls)+'px');
}
Example:
$('#element').addPixelsTo('border-top-width', 30);