I\'am maintaining a GUI built using JQuery. In one part of the GUI, multiple tabs can be opened to edit data.
When a new tab is opened, it is created by cloning the firs
just a suggestion, can you make id of the input as class? So that you don't have a problem when cloning. and your code would be something like, $('#tabs-2 .scriptName').val( data.name );
$('#tabs-2 .scriptName').val( data.name );