S
S
Sergey Evdarov2018-01-30 11:33:51
css
Sergey Evdarov, 2018-01-30 11:33:51

How to hide a div on a page if its value =?

Good day guys.
There are many divs like this, for example:

<div class="checkbox" value="customer/customer">Некое содержимое</div>
<div class="checkbox" value="catalog/product">Некое содержимое</div>

Help me write a script that would see the value = " customer/customer " and if there is, for example, the value = customer/customer, then hide the div (display: none;) not on click, but immediately, there is a value of customer/customer do not show the div

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Valery Lyubimov, 2018-01-30
@zver28

This can be done with regular CSS

C
cybernoob, 2018-01-30
@cybernoob

It is ideal to assign an id to it and make display: none according to the id

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question