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

when i select one value in combo then only hyper link should be enbled for all others it should disa

Apr 8th, 2008 18:33
ha mo, Dave Clark, praveen babu,


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Praveen,
     You'll need to give the link an id for reference purposes.  Then, 
presuming the first OPTION enables the link, the following SELECT tag 
will work for you:
<select name="myselect" size="1" onchange="
 if(this.selectedIndex == 0)
   document.getElementById('linkid').disabled = false;
 else
   document.getElementById('linkid').disabled = true;
 return true;">
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