开发者

Jquery autocomplete

How 开发者_JS百科do I customize the ac_results class generated by the autocomplete plugin?


Have you tried:

$("#elem1").autocomplete("source1.php").addClass("class1"); 
$("#elem2").autocomplete("source2.php").addClass("class2");
$("#elem3").autocomplete("source3.php").addClass("class3");


If you are using

http://code.google.com/p/jquery-autocomplete/

you can specify your own class names as an option

    loadingClass: 'acLoading',
    resultsClass: 'acResults',
    selectClass: 'acSelect',

and define your CSS in a separate file (or wherever you want).

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜