how to maintain new id with javascript/Jquery function call for ...

how to maintain new id with javascript/Jquery function call for ...