jquery add an id where another id is code example Example: add id jquery $('element').attr('id', 'value');