简体   繁体   中英

Autocomplete in multiple rows, same id

Is there any way to use the underline script for multiple rows in a table with the same id in its textfield?

jQuery(document).ready(function($){
    $('#client').autocomplete({
        source:'autocomplete.clients.php',minLength:2
    });
}); 

您可以使用类名代替ID。不能多次使用相同的ID。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM