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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Radio Button usage

Status
Not open for further replies.

M626

Programmer
Mar 13, 2002
299
Is it possible to Hide HTML objects like a checkbox based on whether a redio button or checkbox is clicked or not and even futher more, its it possible to promt a user for a password before the radio button or checkbox would appear after clicking the redio button?
 
ok change that, can i created a input box with username and password and use if statements to determine if to hide a check box if the credentials are incorrect?

example:

If username and password are correct then
<input id="chk1" datafld="c:\test1.bat" type="checkbox" />
else
<div id="loca" style="display: none;">
<input id="chk1" datafld="c:\test1.bat" type="checkbox" />
</div>
End If
 
You can, however your users will be able to see the source (and by that the correct username/password) of your page anytime. If you need a true protection, you will have to go server-side.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top