How do I add a search icon/button to the search bar in datatables?
How do I add a search icon/button to the search bar in datatables?
DingusAmongus
Posts: 7Questions: 3Answers: 0
I managed to add the icon and button by doing it this way:
"dom": '<"top"f>',
"oLanguage": { "sSearch": '<a class="btn searchBtn" id="searchBtn"><i class="fa fa-search"></i></a>' },
But it's not attached to the box with a similar border, if that makes sense. I want it to attach similar to how span does it in the HTML. I have tried finding the answer online but no luck so far.
This discussion has been closed.