开发者

jquery after keyup event

I am using jQuery.autocomplete plugin. What i wants is if returned options are greater than 30 then wants to display some message like list is not complete. To handle this i did

$('div').ajaxStop(function() {
    if ($(this).find('DIV').length >= 30) {
        $开发者_如何学JAVA("<div class='autocomplete clsautocomplete' style='background-  color:#ffffb0'>Partial list - keep typing to filter</div>").insertAfter($(this));
    } else {
        $('.test').hide();
    }
});

and for next time it gets value form cache so the ajaxStop is not called.

thats why i am trying to check this on keyup event but it is not working.

If some has idea to handle this then please give to me.

Thanks

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜