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 

Reply via email to