search for: newformnumb

Displaying 1 result from an estimated 1 matches for "newformnumb".

Did you mean: newformnumber
2007 Apr 23
3
getElementsBySelector problem in IE
...ce): var mostRecentForm = $$(''fieldset.photo_fields'').last(); // get the bottom fieldset var formNumber = mostRecentForm.id.replace(''photo_fields_'',''''); // find the photo'' s object id from the fieldsets CSS id var rx = /n_\d/; var newFormNumber = rx.test(formNumber) ? Number(formNumber.replace(''n_'','''')) + 1 : 0 ; // if the id looks like "n_?" then give it the next number, otherwise number it 0 new Insertion.After(mostRecentForm, ''<fieldset id="photo_fields_n_'' + ne...