var results="<div title='"+id+"'><img src='"+thumb+"'></div>";
I'm rendering this out to the page, and then later trying to retrieve the id variable. To do this, I have:
var id=$(this).attr("title"); });
Right now, ...
After searching the web with no answer, I really need some help aboutattributes in jqueryHere's the plan:I want to retrieve ALL the attributes from a tag for applying them toanother tag.Problem#1: i don't know how many attributes the tag will possess.Problem#2: i don't know what attributes will be used.For example i will have a sample tag like that (attributes can vary) ...
@Rick - I agree with your points, but it's not my code, and I wasn't really suggesting that his specific implementation should be incorporated into the core, it was more to indicate that there was a need which had been recognised by others, and an implementation (which at least addressed the needs of the author) had been created.