I want to custom text in clear button. [SearchPanes]
I want to custom text in clear button. [SearchPanes]
![Hackerdew](https://secure.gravatar.com/avatar/05b498d753ebee867d4d59e6fb4d23f1/?default=https%3A%2F%2Fvanillicon.com%2F05b498d753ebee867d4d59e6fb4d23f1_200.png&rating=g&size=120)
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