change Text Box type from hidden using VB Script

S

SSG

Dear All,

I have 10 text boxes... first 5 text boxes e visible , rest of the 5
are hidden...

once i clicked the button , the hidden boxes should be visble..

can anyone help me hpw to write script?

Regards,
SSG
 
T

ThatsIT.com.au

This is not really a ASP question

<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE></TITLE>
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--

function button1_onclick() {
var texs = document.getElementsByTagName('INPUT')
for (i=0;i<texs.length;i++){

texs.style.display = 'inline'
}

}

//-->
</SCRIPT>
</HEAD>
<BODY>

<INPUT type="text" id=text1 name=text1>
<INPUT type="text" id=text2 name=text2>
<INPUT style="display:none" type="text" id=text3 name=text3>
<INPUT style="display:none" type="text" id=text4 name=text4>
<INPUT type="button" value="Button" id=button1 name=button1
LANGUAGE=javascript onclick="return button1_onclick()">
</BODY>
</HTML>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,175
Latest member
Vinay Kumar_ Nevatia
Top