A
A
Anton2016-01-31 19:00:41
JavaScript
Anton, 2016-01-31 19:00:41

Why does checkboxAll fire only for the first list?

Hello!

$(document).ready ->  # or $ ->
  $('#checkAllEpisodes').change ->
    alert('23842384')

This code only works for the first one:
<input type="checkbox" id="checkAll" value="тут_id">


The second, third (and so on) checkAll does not work. Doesn't display alert.

There are several lists, I'm trying to implement checkAll for each of them. At the current moment, my version works only for the first list.

Where am I wrong? Where did you make a mistake?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question