[Javascript] getting input elements

Mike Dougherty mdougherty at pbp.com
Tue Jul 15 14:34:41 CDT 2003


Considering the amount of code required to traverse the checkboxes,
build a suitable Querystring and redirect the browser to the new page
based on some user action - I'm wondering why it isn't easier to just
put <form> tag around the checkboxes...

-----Original Message-----
From: javascript-bounces at LaTech.edu
[mailto:javascript-bounces at LaTech.edu] On Behalf Of Paul Cowan
Sent: Tuesday, July 15, 2003 2:26 PM
To: javascript at LaTech.edu
Subject: Re: [Javascript] getting input elements


*This message was transferred with a trial version of CommuniGate(tm)
Pro*
Alan,

Use the DOM to get the various elements.

e.g.

ie5:

var myElement = document.all.myElement;

ie 5.5+

var myElment = document.getElementByID('myElement');

Check google

Paul



dagda1 at hotmail.com





>From: Alan Roberto Romaniuc <romaniuc at klais.com.br>
>Reply-To: "[JavaScript List]" <javascript at LaTech.edu>
>To: "[JavaScript List]" <javascript at LaTech.edu>
>Subject: [Javascript] getting input elements
>Date: Tue, 15 Jul 2003 15:37:03 -0300
>
>
>Hi,
>
>       I have a page with a lot of input elements, but without a form.
How 
>can I get, p.g., only the checkbox inputs to build a request url?
>
>Tanhks
>
>
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript

_________________________________________________________________
Hotmail messages direct to your mobile phone
http://www.msn.co.uk/msnmobile

_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript




More information about the Javascript mailing list