i have a few small form questions answer any that you know how to.
first question:
what is the coding to insert into the “input” tag to make a text box change colors when somone types in it?
second question:
how do you make it so you can’t submit a form unless you have entered something into a particular text box? for intance, i want to make a certain text box required so that if you don’t enter something it won’t submit the form.
last question:
I am trying to make a form that will submit the information in an email to me. however, it has been a while since i messed with and web design stuff, and i noticed that doing “form method=“post” action=mailto:myemail@mydomain.com <FORM ACTION="mailto:myemailadress@mydomain.com” METHOd=“post”>no longer works in IE. (a blank email with the address pops up, i am sure you know what i mean)
so now the question is, how can i make it so my form is submited to my email? i would like to go with the most simple route if possible.
MANY MANY THANKS for taking the time to help me. i should probably just get JS book, but i don’t really have the money.
Do you mean the background of the text box or the color? Either way it can be done using javascript and css. By changing the class name on the desired event.
2.Instead of having a submit button < input type=“submit” value=“submit” /> make only a regular button that calls a javascript function: < input type=“button” value=“submit” onclick=“checkForm” /> and the javascript function would look something like this:
function checkForm(){
//do form check
formname.submit();
}
Not gonna happen. You have to use PHP, ASP, or another server-side language with Form Email enabled.
hmm, i think the way i worded my question was confusing.
what i want to do is have a text box, <input type=“text”> like that, that changes colors when you type in it. you use the onKey command to do it i think, i just don’t know how to do it.
i am really sorry, i wasn’t very clear with what i was asking. what you showed me did help with something else i was trying to do the other day, but my real question is how to change the background color of the text box.
for instance, if the text box is yellow to begin with, i want to to change to white when you begin typing in it.