Home > Javascript > Simple Form Code

Simple Form Code

November 15th, 2009

I’m looking for a simple form code that has these features.

Here’s the basic form code.

<form>
<input name=”input1″ type=”text” value=”Enter your web address” />
<input name=”input2″ type=”text” value=”Enter your your name” />
</form>

You can see the form here: http://evoter.info/do/form1115.html

1. When the mouse moves over the input field, the text changes to red.
2. When the input field is clicked, the default text clears.
3. When the first input field (input1) is clicked, the default text clears and shows “http://” so they can simply continue typing the web address.
4. The default text is centered in the input field. When it’s clicked, the mouse cursor gets left aligned, so the text user enters starts from the left, not from the center.

If you know javascript, this should be a simple job for you. If you can do it right now, I can pick you and finish it within the next hour. Thanks.


Simple Form Code

Categories: Javascript Tags: , , , , , ,
Comments are closed.
Bear