vdw / HideSeek

A simple, mobile-friendly, yet customizable quick/live search jQuery plugin.
http://vdw.github.io/HideSeek
Apache License 2.0
429 stars 74 forks source link

is this possible search in dynamically populated list? #35

Open exorab-technology opened 8 years ago

exorab-technology commented 8 years ago

I have a file where i populate list with jquery and there is already a input tag and i initialize hideseek on it but its not work. Is there any method like refresh or other which work on dynamically list.

gorillapower commented 8 years ago

I managed to get it to work by using JQuery and off().

...after list has been dynamically regenerated

$('#search').off().hideseek()

Rebinds hideseek() after removing all events from the element, not possibly the best solution but it seems to work for me.

wha58941 commented 5 years ago

Edit: I fixed the issue by putting the $("#search").hideseek(); inline on the loaded page. Maybe not best practice but worked for me.

_I have the same question, and using .off() didn't work for me.

I am using ajax to load a php page that gets info from a sql table.

Any other suggestions?_

p.s. this plugin is absolutely amazing.