[jQuery] set dom id

[jQuery] set dom id


I need to dynamically set the DOM 'id' attritube for elements using
jQuery notation. Is that possible, if so, can I get an example please?
$('element-id')[id] = newid
doesn't quite work. :-)
Thanks!