[thelist] DOM: Counting text Inputs in a form?
Peter-Paul Koch
gassinaumasis at hotmail.com
Tue Mar 4 02:26:01 CST 2003
>On Monday, March 3, 2003, at 03:15 PM, Tom Dell'Aringa wrote:
>> textArray[i] = YourForm.elements[i].value;
>
>or, more eloquently, push it:
>
>textArray.push(YourForm.elements[i].value);
>
>I love da pushin, da poppin, da shiftin' da unshiftin', an' da slicin'. Who
>needs a Cuisinart when you have array methods?
They're great, but unfortunately not fully supported. IE5Mac, for instance,
doesn't support push at all.
So use them with care.
--------------------------------------------------
ppk, freelance web developer
Interaction, copywriting, JavaScript, integration
http://www.xs4all.nl/~ppk/
Column "Keep it Simple": http://www.digital-web.com/columns/keepitsimple/
W3C DOM Compatibility Table, expanded & updated
http://www.xs4all.nl/~ppk/js/index.html?version5.html
--------------------------------------------------
_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
More information about the thelist
mailing list