E
E
Evgeny Yakushov2018-02-15 23:42:38
JavaScript
Evgeny Yakushov, 2018-02-15 23:42:38

How to set conditions on jquery selector?

There are elements:

<div class="number_box">
  <div class="number_service" data-row-index="1">первый</div>
......
</div>
<div class="number_box">
  <div class="number_service" data-row-index="2">второй</div>
......
</div>
<div class="number_box">
  <div class="number_service" data-row-index="3">третий</div>
        ......
</div>

They are not available as children of the same element, always a null element number_box
How to find this element by class and data?
something like this:
$('. number_service[data-row-index="2" ]').css({'dicplay' : 'block'})

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Yakushov, 2018-02-16
@yevgenyyakushov

The topic is closed, I did everything right, I just took the wrong data names
This is a working version.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question