Thanks Jason - appreciated.
At 03:33 p.m. 8/03/2008, you wrote:
I think you're looking for something more like this for that last bit: $('#sshoweditor fieldset').each(function(i){ $(this).attr('id','fs' + i); }); - jason On Mar 7, 8:51 pm, Bruce MacKay <[EMAIL PROTECTED]> wrote: > Hi folks, > > I have a form (id="sshoweditor") containing - let's say 6 - > fieldsets, each containing an input element. > > The fieldsets have a unique ID - fs0, fs1, ... fs5. > > I have a function that can delete any specific fieldset. > > My looping problem comes now - when the fieldset is removed, I want > to renumber the remaining fieldsets. >> $("#fs"+ej).highlightFade({color:'yellow',speed:2000,iterator:'sinusoidal'}).animate({opacity:> 1.0}, 1000).fadeOut(500).remove(); > var n = parseInt($("#howmany").attr("value"))-1; > $("#howmany").attr("value",n); > var z = 0; > $("#sshoweditor fieldset").each(function(t){ > ( { "id" : "fs" + z} ); > z=z+1; > }); > > My code doesn't throw an error - but it doesn't produce a result > either. Can someone guide me here. > > Thanks > Bruce

