how to get .html() and .text() from datatable
how to get .html() and .text() from datatable
hi all, i am using datatable to show record. i have a circle (icon) in first td of each row. i need to turn green this icon of status is 1. i am having problem with getting icon .html() and .text() out from datatable so that i can turn icon green if its corresponding number is matching with the status. currently only 1st icon is green which status is 0. which should not be green.
how i can get .html() and .text() from datatable tr td .if i can get .html() and .text() from datatable i will get it work.
here is my code https://fiddle.jshell.net/6faumn44/41/
Thanks,
Answers
when i disable pagination, i can get whole table data with .html() and .text() but when i enable pagination i can only get first page data with .html() and .text(). here is my updated working code without pagination. https://fiddle.jshell.net/6faumn44/59/
i dont want to lose pagination feature. can you please help me out. thanks.
FAQ:
Allan