Hello folks,
I am using the .clone() method to duplicate a fieldset containing
some form elements e.g.
var clonedRow = $( "#sshow_input fieldset:last" ).clone();
Within that cloned fieldset is a string of the form "sListImage(x)"
where x = 1, 2, or 3 etc
With each duplication I need to increment x by 1.
I had hoped (rather than knowing) that
myString = "sListImage(3)"
myString2 = "sListImage(4)"
var clonedRow2 = clonedRow.replace(myString,myString2);
would do the trick. But once again, my guesses are falling well
short. I'm being told that clonedRow.replace is not a function.
I'd appreciate some help here.
Thanks,
Bruce