当前位置:  软件>JavaScript软件

jSuggest

    来源: 编程技术其它 iis7站长之家   发布时间:2015-01-20

    本文导语:  jSuggest is yet another auto-completer for your text input box. It mimics the functionality of Google suggest. jSuggest will also bind item selection to your up and down arrows and also allow you to select the suggestions using your mouse. DownloadDemo The API and Default Values   $.fn.jSuggest....

jSuggest is yet another auto-completer for your text input box. It mimics the functionality of Google suggest. jSuggest will also bind item selection to your up and down arrows and also allow you to select the suggestions using your mouse.

Download
Demo

The API and Default Values

 

$.fn.jSuggest.defaults = {
minchar: 3,
opacity: 1.0,
zindex: 20000,
delay: 2500,
loadingImg: 'ajax-loader.gif',
loadingText: 'Loading...',
autoChange: false,
url: "",
type: "GET",
data: ""
};

 

Explanation of the Options:

minchar: the minimum number of characters in the textfield before jSuggest fires
opacity: opacity of the suggestions
zindex: z-index of the suggestions
delay: number of miliseconds before jSuggest fires
loadingImg: the image when waiting for ajax calls
loadingText: the text when waiting for ajax calls
autoChange: IF TRUE, automatically change the text of the text box on hover or selected. IF FALSE: change the text of the textbox when enter or mouse click on the suggestion
url: address of your suggestions.
type: "GET" or "POST"
data: this can be the name of the text box ie [ if data="age" and url ="pro.php", then this is parsed pro.php?age=textBoxvalue ]. Do not touch this option if you have no idea. Best to leave empty.


    
 
 

您可能感兴趣的文章:

 
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。












  • 相关文章推荐


  • 站内导航:


    特别声明:169IT网站部分信息来自互联网,如果侵犯您的权利,请及时告知,本站将立即删除!

    ©2012-2021,,E-mail:www_#163.com(请将#改为@)

    浙ICP备11055608号-3