I want to custom text in clear button. [SearchPanes]
I want to custom text in clear button. [SearchPanes]
Hackerdew
Posts: 1Questions: 1Answers: 0
Originally my clear button was not "X" but it was " ื" I don't know if that's the character or the font.
So I want to edit the text in the clear button. (beside the search button) By changing from "x" to "remove" or some other text.
I've tried '$('.clearButton').html("Remove");'
But it can only be used when it has this element.
But when I use it with 'SearchPanes Button' I can't change the text that is on the clear button.
How to solve this?
P.S. Sorry my english.
This discussion has been closed.
Answers
Use i18n please
https://datatables.net/reference/option/searchPanes.i18n
Something like this could work:
https://datatables.net/reference/option/searchPanes.i18n.clearMessage