Is there any selector available to add IDs like there is for adding a class - addClass()?
A:
do you mean a method?
$('div.foo').attr('id', 'foo123');
Just be careful that you don't set multiple elements to the same ID.
scunliffe
2009-11-01 17:19:59