[jQuery] Cloning Fieldsets

2008-05-29 Thread dickiedyce
Err hello? Managed to get it working ... kind of but out of interest wanted to know if I was missing some jQuery idioms within the .each() function? Any thoughts gratefully received. R. ( Noobie ) function addSubform(childtype) { subformCount++; var thisType = childtype; var mysu

[jQuery] Cloning Fieldsets

2008-05-29 Thread Richard Dyce
Hi, I'm a recent convert to jQuery, and so far, so great! I'm slowly moving through my home rolled javascript and migrating it across. One script which I'm desperate to fix is a generic 'addSubform' routine which I use to create a new child form (say address form) for a parent form (say o

[jQuery] Cloning Fieldsets

2008-05-29 Thread dickiedyce
Hi, I'm a recent convert to jQuery, and so far, so great! I'm slowly moving through my home rolled javascript and migrating it across. One script which I'm desperate to fix is a generic 'addSubform' routine which I use to create a new child form (say address form) for a parent form (say organisat