Sorry, split brain between different projects quoting standards.
I used setAttribute because I didn't want to cast it into a jQuery object just for that operation