the following does NOT work:
function doRestyle(div) {
jQuery(div).css({
"margin-top": addableMargin + "px",
"margin-bottom": addableMargin + "px",
});
}
However, this works:
function doRestyle(div) {
jQuery('#idName').css({
"margin-top": addableMargin + "px",
"margin-bottom": addableMargin + "px",
});
}
Any explanation? Many thanks :)
divis e.g."#idName". Show how do you calldoRestylefunction.divorjQuery(div)return in the console during the doRestlyle call?