search for: formnumber

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

2007 Apr 23
3
getElementsBySelector problem in IE
...r a pseuo id of the form "n_0", "n_1", ...] This is how I''m doing it (and I''m sure there must be a more elegant way, but as I said, just a js novice): 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...