If your code is exactly that (the two lines one after the other), this is normal the second one does not work, as $("#"+inputID) does not exist anymore...
Did you try this :
 jQuery("#"+inputID,addedItem).attr("id",newInputID);
 jQuery("#"+newinputID,addedItem).attr("name",newInputID);

or
jQuery("#"+inputID,addedItem).attr("id",newInputID).attr ("name",newInputID);

?

Reply via email to