How can I make a function for one element, like the each() does it for multiple elements?
What I want to do, (just for the sake of the example)
$(".element").each(function () {
var height = $(this).height();
$(this).css("bottom", "-" + height + "px");
});
Should I just use the Each() or should I use one()?
jQuery each will work perfectly with just the one element in it. So you can go ahead and use .each safely