oTable.fnFilter is not working

oTable.fnFilter is not working

shafiqkrshafiqkr Posts: 23Questions: 0Answers: 0
edited March 2013 in General
I want to provide search in thead of datatables and implement search in it...but it is not working...
http://jsfiddle.net/methew/u9654/3/
only this line is not working properly ...oTable.fnFilter( this.value, $(this).attr('id') );

Replies

  • allanallan Posts: 63,522Questions: 1Answers: 10,473 Site admin
    Your example isn't loading either jQuery or DataTables, so I can't work with it much, but I would say that `$(this).attr('id')` is a string, not an integer. Try using `parseInt` to make it an int.

    Allan
  • shafiqkrshafiqkr Posts: 23Questions: 0Answers: 0
    edited March 2013
    please check it now,i have updated it now

    http://jsfiddle.net/methew/u9654/3/

    in every case it give me "No matching records found"
  • shafiqkrshafiqkr Posts: 23Questions: 0Answers: 0
    edited March 2013
    Oh i got it,the issue was with the id's of controls...i have started from 1,it should be from 5...sequence is must....

    Thanks once again allan..you are rock
This discussion has been closed.