I have an order list:
Where is your code? What have you tried? What event will trigger the action? Example: When the page loads? OR on a button click?
Also, should the list item be completely removed from the DOM tree, or may it be made visible again by other user actions?
Will the content of the list change in the future, or will it always be the second LI element that's affected?
It triggers when the page is loaded and always the second LI element. Example:
When the page is loaded, it checks the browser. If the browser is Chrome or Firefox, then hide second element.
I used browser detection as an example. It could be other situation that sets the boolean variable.
Here's an example:
It works. Thanks.
Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)