Padding or margin value in pixels as integer using jQuery
after reading the above Answers . One of the user exaplained these
alert($("a").css("margin-top"));
Now I wanted to do these
alert($("#cool").css("margin-top")); ' #cool is my table id <table id="cool">
but it did not work. How do i get the css properties of a tag by specifying its id ?
Seems like you didn’t put your code inside a pageLoad event :
Or you forgot to integrate jQuery.js into your page.