Set input button to have ‘X’ to clear.

Set input button to have ‘X’ to clear.

classic12classic12 Posts: 228Questions: 60Answers: 4
edited December 2017 in DataTables

I’m sure I’ve asked before but can’t find it.

Is there a way to make this wizardry

Replies

  • allanallan Posts: 63,689Questions: 1Answers: 10,500 Site admin

    Do you mean the DataTables default global search input? It is <input type="search"> so if your browser / OS default is to show a clear icon, it will be shown.

    Allan

  • classic12classic12 Posts: 228Questions: 60Answers: 4

    This iOS and not showing.

    Is there a way to force it on desktop ?

  • classic12classic12 Posts: 228Questions: 60Answers: 4
  • allanallan Posts: 63,689Questions: 1Answers: 10,500 Site admin

    This is the top hit I found on a google search for "ios input clear icon".

    It looks like iOS doesn't have that in its controls by default. You need to use some Javascript to add it.

    The clear icon is a little frustrating since some browsers and OSs use it, while others don't. And it can chance between versions - IE on Win8 put it everywhere as I remember.

    Allan

This discussion has been closed.