|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
help: clear input field
I'm not that fluent in java... but i remember seeing out there that if you click on a input field ie
<input type="text" name="search" value="Search"> it would clear and allow you to enter what you need without having to delete it.... can anyone help me as how to do this? or point me to a site that does it... All help is greatly appreciated - Loren |
|
#2
|
||||
|
||||
|
This would be a Javascript question... thread moved to appropriate forum...
As for your question, a simple example of how to do this is as follows: Code:
<input type="text" name="search" value="Search" onclick="this.value=''"> |
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > help: clear input field |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|