jquery code to add id with class code example Example: add id jquery $('element').attr('id', 'value');