checkbox not working

checkbox not working

miked201miked201 Posts: 2Questions: 1Answers: 0

i am using DataTables example with checkbox column and i have added a header checkbox to do a check all.
the header checkbox is enabled but the checkboxes in the rows are not enabled.
when i check the css in chrome i see it is setting the following:

table.dataTable tbody td.select-checkbox:before, table.dataTable tbody th.select-checkbox:before {
content: ' ';
}

it i uncheck content: ''; in chrome it works.

is there an option to sent "content"?

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    Hi @miked201 ,

    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

  • miked201miked201 Posts: 2Questions: 1Answers: 0

    i am able to get around it by using this.

    table.dataTable tbody td.select-checkbox:before, table.dataTable tbody th.select-checkbox:before {
    content: initial !important;
    }

    but there has to be a better option.

  • kthorngrenkthorngren Posts: 21,299Questions: 26Answers: 4,944

    One option is to use the Gyrocode Checkboxes Plugin. If you don't want to use this plugin then, as Colin asked, please post a test case so we can see what you are doing.

    Kevin

This discussion has been closed.