Friday, February 03, 2012

jquery - Html/Javascript: Add Attribute to an HTML Control - Stack Overflow

jquery - Html/Javascript: Add Attribute to an HTML Control - Stack Overflow: "Solution from answer below

comment = $(".showItLink").attr("comment");
...
createdDiv = CreateDiv(comment, "postComment");
"

'via Blog this'