I\'m trying to modify this code to also give this div item an ID, however I have not found anything on google, and idName does not work. I read something about append
Why not do this with jQuery?
var newDiv= $('', { id: 'foo', class: 'tclose'})