Sorting by alt numerical value in an "i" tag.
Sorting by alt numerical value in an "i" tag.
ballchain
Posts: 3Questions: 1Answers: 0
Link to test case:
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem: My datatable shows fontawesome check mark or x depending on whether there's a 0 or one in the database. I've tried using the alt attribute plugin to sort by adding an alt tag with either 0 or 1 (as well as tried no/yes in the tag) and it isn't working. Any advice?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
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
Here's the test case..
http://live.datatables.net/jelevile/1
The problem is you have this:
You don't have the Datatables options being passed into the Datatables init function. It should look like this:
Here is the updated test case:
http://live.datatables.net/jelevile/2/edit
Kevin
Thank you, Kevin. Total oversight on my part leaving it out of the brackets.