i am using jquery .css() function to get ‘margin-left’ property using var divMargin= $('#DivId').css('margin-left') but i am getting undefined in divMargin some times this works perfectly and some times causes problem
var divMargin= $('#DivId').css('margin-left');
what is cause of such unexpected behavior?
Put your script inside
So it run after DOM is loaded