The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> How to conditionally hide a list
danmu
post Apr 2 2020, 11:50 AM
Post #1





Group: Members
Posts: 4
Joined: 2-April 20
Member No.: 27,263



I have an order list:
<ol>
<li>Instruction A</li>
<li>Instruction B</li>
<li>Instruction c</li>
</ol>

I would like to hide Instruction B base on the value of "variableA" (set in JavaScript). Example: If variableA = false, then hide Instruction B.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
 
Reply to this topicStart new topic
Replies
danmu
post Apr 6 2020, 01:00 PM
Post #2





Group: Members
Posts: 4
Joined: 2-April 20
Member No.: 27,263



Christian,
It works. Thanks.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 18th April 2024 - 09:35 AM