CheckBox in Footer Duplicate Id Problem

CheckBox in Footer Duplicate Id Problem

ToybToyb Posts: 2Questions: 1Answers: 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

Answers

  • colincolin Posts: 14,195Questions: 1Answers: 2,405

    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: 2Questions: 1Answers: 0
  • allanallan Posts: 55,865Questions: 1Answers: 8,830 Site admin

    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.