阅读背景:

如何在自动完成文本框jquery中使用数组?

来源:互联网 

For Example

例如

<link rel="stylesheet" href="/go.html?url=//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>

<script>
    $(function() { 
        var availableTags = [ "ActionScript", "AppleScript", "Asp"];
        var availableTagsCode = ["1", "2", "3"]; 
        $( "#tags" ).autocomplete({ source: availableTags });
    });
</script>

<input id="tags" name="name">
<input id="tags_code" name="code">
<link rel="stylesheet" href=



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: