Faqts : Computers : Programming : Languages : JavaScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

4 of 4 people (100%) answered Yes
Recently 4 of 4 people (100%) answered Yes

Entry

hide text box

Apr 9th, 2008 20:33
ha mo, Dave Clark, Bhavna Bakshi,


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Bhavna,
     First you create a reference to he form field:
var fld = document.forms['formName'].elements['fieldName'];
     Then, there are two choices for hidding a text box:
fld.style.visibility = 'hidden';
fld.style.visibility = 'visible';
fld.style.display = 'none';
fld.style.display = 'inline';
Take care,
Dave Clark
www.DaveClarkConsulting.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://www.businessian.com
http://www.healthinhealth.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com