Reputation: 43833
In jquery, I do a select statement to get a bunch of img tags. But how do I actually get the object of each one of those that I can use with the drawImage function for canvases? Normally what works is the document get element by id.
Thanks.
Upvotes: 1
Views: 275
Reputation: 121998
You can get the object by writing $(this)
For example:
$("img").each(function() {
console.log($(this).prop("src"));
});
in side the loop on bunch of img tags .
Upvotes: 1