how to capture, change and restart input for search inside a datable ?

how to capture, change and restart input for search inside a datable ?

yonnelyonnel Posts: 4Questions: 0Answers: 0
edited May 2012 in General
Hello,
problem with input (in search) i to type word width accent in french
I would like intercept and modify the word in this inout and relaod the search

how is possible ?
thank's for help

YO

Replies

  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    What you need to do is unbind the keyup event that DataTables puts on the default global input element and then bind your own keyup event listener. That function you bind will call fnFilter with your modified search value.

    Allan
  • koosvdkolkkoosvdkolk Posts: 169Questions: 0Answers: 0
    Maybe this helps?

    http://live.datatables.net/oxizoc/2/edit
  • yonnelyonnel Posts: 4Questions: 0Answers: 0
    yes !
    I think is possible to intercept.
    I will try the solution of koosvdkolk, and i will say you if it's a success
    thank's for help
  • yonnelyonnel Posts: 4Questions: 0Answers: 0
    aie aie !
    this input have no id ! it is directly put by datatable
    [code]
    recherche parmi les résultats :
    [/code]
  • koosvdkolkkoosvdkolk Posts: 169Questions: 0Answers: 0
    Check my example, I select the input using $('#example_filter input').
  • yonnelyonnel Posts: 4Questions: 0Answers: 0
    sorry !
    i can catch it by [code]$('#listPersonnes_filter" input').keydown( function(event) {[/code]
    now it's ok, thanks
This discussion has been closed.