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?

0 of 1 people (0%) answered Yes
Recently 0 of 1 people (0%) answered Yes

Entry

how to hidden the controls by using java script

Apr 8th, 2008 19:22
ha mo, Dave Clark, samba sa,


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Samba,
     You can obtain addressability to form controls and/or HTML 
elements as follows:
// form controls
var ele = document.forms['formName'].elements['fieldName'];
// image elements
var ele = document.images['imageName'];
// other HTML elements
var ele = document.getElementById['elementId'];
     Here are several examples of what you can do to form controls 
and/or HTML elements:
ele.style.visibility = "hidden"; // or "visible"
ele.style.display = "none"; // or "" or "block" or "inline" etc.
ele.disabled = true; // or false; but not all elements support it
ele.readonly = true; // or false; but only for some form elements
Take care,
Dave Clark
www.DaveClarkConsulting.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://www.businessian.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
http://www.healthinhealth.com