HTML5 search type input

HTML5 search type input

heruanheruan Posts: 7Questions: 0Answers: 0
edited January 2012 in General
Why don't use [code][/code] for the filtering fields? It has the nice feature of being style by newer browser as a typical search field, with a quick reset option (that should trigger a redraw). Old browsers will fallback on text type!

Replies

  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    Yup - I think this is probably a reasonable change now that more browsers are supporting the search type. I'll look at integrating that shortly. Until then, it is trivial to use a little bit of Javascript to change to a search type: http://live.datatables.net/oyolix/edit .

    Allan
  • chreadiechreadie Posts: 1Questions: 0Answers: 0
    you might want to change "jqFilter.bind( 'keyup.DT', function(e) {" into "jqFilter.bind( 'keyup.DT search', function(e) {" to catch when the user clicks the "reset button" or hits escape.
This discussion has been closed.