|
|
Only One Field |
|
|
Only One Field |
|
|
JavaScript / Forms |
|
|
Click to Visit |
|
|
84 |
With this JavaScript you can add form element in your webpage that ensures that the visitor of your page has filled either one of the two fields provided by the script. The script erases one field’s value if the user clicks in either box. It also prevents the visitors from leaving both the fields empty. The script is very small in size and is very easy to setup in your webpage.
|