05, 09 2010, 07:21:05 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register Weztec home  
Pages: [1]   Go Down
  Print  
Author Topic: Short of space Form Inputs  (Read 3731 times)
0 Members and 1 Guest are viewing this topic.
Weztec Support Team
Administrator
Newbie
*****
Offline Offline

Posts: 38



View Profile
« on: 23, 01 2007, 09:06:52 AM »

If you are short of space on your form you can use this code to help inform the user as to what to key in to the input field:

Code:
<textarea name="text" onFocus="if(this.value==this.defaultValue)value=''" onBlur="if(this.value=='')value=this.defaultValue;">Message:</textarea>

<input name="search" type="text" onfocus="if(this.value==this.defaultValue)value=''" onblur="if(this.value=='')value=this.defaultValue;" value="Search" size="10" maxlength="200">
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.8 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.212 seconds with 20 queries.