CheckBox in Footer Duplicate Id Problem

CheckBox in Footer Duplicate Id Problem

ToybToyb Posts: 17Questions: 8Answers: 0

I need some checkboxes in my scrolly footer but the label "for=" attribute does not work. Clicking on the label does not trigger the checkbox. I found that the footer is duplicating the element Id's which causes the problem.

Has anyone figured out how to get checkboxes to work in the footer?

Below is a link that shows the duplicate id problem:

https://datatables.net/forums/discussion/35132/datatables-1-10-11-with-scrolling-enabled-duplicates-footer-leading-to-duplicate-html-element-ids

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,112Questions: 1Answers: 2,583

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

  • ToybToyb Posts: 17Questions: 8Answers: 0
  • allanallan Posts: 61,438Questions: 1Answers: 10,052 Site admin
    Answer ✓

    You are correct - the duplicate id is the issue. Many thanks for the test case. Unfortunately 1.12.0 has just shipped or I'd look at getting a patch in for this to that release. Instead, it will be the next release cycle. I've added a bug for it in our tracker for the next patch release though.

    Thanks,
    Allan

Sign In or Register to comment.