I have about pulled my hair out. I am using Dynamic Drive's cool javascript window code and all is well except for my lack of being able to get values from the form elements. If I use a standard
as part of my html that creates form field (text input field), and then evaluate it using
I can get the value entered. However, I am having the hardest time understanding how to access the values of any element on that form (like when a user clicks a submit button - I want to be able to get any value from that form using the form element name or id).
Any ideas?
Thanks!
LJ Wilson
My personal saying - Just remember, it can always get worse, and usually will.
Code:
onChange="myfunction(this)"
as part of my html that creates form field (text input field), and then evaluate it using
Code:
function myfunction(id)
{
var description = id.value;
alert(description);
}
I can get the value entered. However, I am having the hardest time understanding how to access the values of any element on that form (like when a user clicks a submit button - I want to be able to get any value from that form using the form element name or id).
Any ideas?
Thanks!
LJ Wilson
My personal saying - Just remember, it can always get worse, and usually will.