I have what is probably a very simple question, but I am VERY new to
javascript. Here is what I want to accomplish.
I have a text box called zp. I also have a hidden field called frm.
There is also a submit button.
When the submit button is pressed, I want to set the value of the
hidden field, frm, depending upon whether or not there the text field,
zp, is empty. For example, if it is empty I want the hidden field to
be frm="empty" and if there is something there I want it to be
frm="set".
These fields are in inside a form of method "GET" with an action of a
URL. The hidden fields are passed to the new page automatically as
properties at the end of the URL string with the ? and the &. The
action taken in the new page depends upon the value of frm that is
passed.
Would I add an onclick to the submit button or an onexit to the text
box, zp? How to I name the variable? Is it document.frm?
As I said, I am a real beginner here.
Shelly