How to set visible false in javascript?
2 Answer(s) Available
Answer # 1 #
- Make the control visible (by default should be visible)
- hide the element using CSS style display:none; or visibility:hidden;
- add an event listener to ddlType so when it becomes 6 you swap the style for txtOthers.
- also disable the auto post back for ddlType.
Answer # 2 #
The visibility property sets or returns whether an element should be visible.
The visibility property allows the author to show or hide an element. It is similar to the display property. However, the difference is that if you set display:none, it hides the entire element, while visibility:hidden means that the contents of the element will be invisible, but the element stays in its original position and size.
Return the visibility property:
Set the visibility property:
CSS tutorial: CSS Display and visibility
CSS reference: visibility property
Related Questions
- What channel is hbo now on directv?
- How long to see zion national park?
- What is an american express gold card?
- Do you know best things to do in California With Family?
- What is netflix and amazon prime?
- How to change intellij vm options?
- How to turn on chase bank notifications?
- What is the new university of illinois mascot?
- How to work on microsoft powerpoint together?
- How to find apple tv remote on iphone?