Ok, so I enclosed each input tag with form tags and gave them each an ID name.
So, I referenced them using this: document.getElementById('id name') and added
them together (the original notation you gave me) and I got nothing. Is this
notation suppose to be between the script tags? What do I put after the
"onclick" part of the button? Because right now, nothing happens when I click
the button. This is so confusing I don't know how anyone understands this haha.
Plus, I have a really horrible teacher so the whole class feels the same way I
do. Thanks for all your help!
>On Tue, Apr 15, 2008 at 4:34 PM, Kasey Clark <[EMAIL PROTECTED]> wrote:
>
>your fields should be enclosed in <form></form> tags.
>
>let's say you have:
>
><form name="foo">
><input type="text" name="bar" size="1" maxlength="1" />
></form>
>
>you'd reference that via:
>
>document.foo.bar.value
>
>if your elements have an ID attribute, you don't need to traverse the
>DOM, and you can reference them directly.
>
>e.g.
>
><input type="text" name="bar" id="bar" size="1" maxlength="1" />
>
>you'd reference that via:
>
>document.getElementById('bar')
>
>anyway... wrap your form in <form></form> tags, and use the notation
>above (document.formName.fieldName.value) to try and put something
>together. You can still use the alert() example i gave you. just use
>the formName.fieldName reference instead of the getElementById().
>
>--
>Evelyn the dog, having undergone further modification pondered the
>significance of short-person behaviour in pedal depressed,
>pan-chromatic resonance, and other highly ambient domains. "Arf," she
>said.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k
Archive:
http://www.houseoffusion.com/groups/Javascript/message.cfm/messageid:5183
Subscription: http://www.houseoffusion.com/groups/Javascript/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.33