Joined December 2011
·

Issac Gerges

Madison, WI
·
·

Posted to jQuery DOM creation tips over 1 year ago

"There is nothing wrong with the above methods". I'd really say any string concatenation should probably be avoided since (if the class name is influenced by some external input) it can lead to an XSS vulnerability.

http://jsbin.com/akuPUCa/2/edit?html,js,output

Achievements
32 Karma
0 Total ProTip Views