Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SarkMan Text 1

Status
Not open for further replies.

ebarratt

Programmer
Apr 10, 2002
53
US
SarkMan thank you that worked great I just have one more piece of info that I need. Right next to the controls I have a text discription of what they mean is there anyway I can make the text description disappear too?

Description: <INPUT TYPE=textbox Name=whatever></INPUT>
/\ /\ /
make that Description: <==== disappear? Thanks alot for previous advice
 
You have to put the whole line in div tags and then through Javascript function to make them disappear.

 

<Form Name=&quot;whatever&quot;>
<SELECT ID=cboPromotionType NAME=cboPromotionType STYLE=&quot;font-size:9pt; width:120px; COLOR=navy&quot; onchange=&quot;HideTxtBox(this)&quot;>
<OPTION VALUE=&quot;default&quot; selected>Select a Promotion</OPTION>
<OPTION VALUE=&quot;P&quot;>Standard Promotion</OPTION>
<OPTION VALUE=&quot;I&quot;>Implementor Promotion</OPTION>
</SELECT>
<span id=&quot;sText&quot; style=&quot;display:&quot;>description</span><input type=text name=&quot;txtTest&quot; style=&quot;display:&quot;>
</FORM>
<script language=javascript>
function HideTxtBox(theField)
{
if(theField.value==&quot;I&quot;)
whatever.txtTest.style.display=&quot;none&quot;
sText.style.display=&quot;none&quot;
}
else
{
whatever.txtTest.style.display=&quot;&quot;
sText.style.display=&quot;&quot;
}
}
</script>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top