Home › Forums › Front End PM PRO › On text entered, the list is updated › Reply To: On text entered, the list is updated
March 29, 2018 at 12:44 am
#12795
Shamim Hasan
Keymaster
add following code in your theme’s (child theme’s if any) functions.php
add_action( 'fep_display_before_directory', function(){
?><script type="text/javascript">
jQuery(document).ready(function($){
var delay = (function(){
var timer = 0;
return function(callback, ms){
clearTimeout (timer);
timer = setTimeout(callback, ms);
};
})();
$('.fep-directory-search-form-field').keyup(function() {
delay(function(){
$('#fep-directory-search-form').submit();
}, 1000 );
});
});
</script><?php
});