开发者

Jquery autocomplete

开发者 https://www.devze.com 2022-12-08 16:21 出处:网络
How 开发者_JS百科do I customize the ac_results class generated by the autocomplete plugin?Have you tried:

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

精彩评论

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