• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 8993
  • Last Modified:

how to make an html checkbox not visible ?

There is a  checkbox on the form. It should be loaded but not visible in some cases.
I tried :

<input type=checkbox visible=false visibility:hidden display=none ... />

Nothing works. The checkbox is part of old ASP code.
0
quasar_ee
Asked:
quasar_ee
3 Solutions
 
RazixCommented:
if this is old ASP

wrap the html in an ASP condition statement:

example:

<% if Visible=true then %>
<input type=checkbox name="checkbox">
<% end if%>

if this is ASP.Net

you can just call the control in the Page.Load and set it

CheckboxControl.Visible = False/True



0
 
aprestoCommented:
try

<div id="HideChkBox" style="visibility:hidden><input type="checkbox"></div>
0
 
ColosseoCommented:
Hi

You almost had it right, to make the checkbox invisible you can use style like this

<input type=checkbox style="visibility:hidden" ../>

Cheers

Scott
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now