Tag: 自动填充

将自动填充function添加到jQuery-UI 1.8.1

这就是我现在所拥有的,遗憾的是我似乎无法弄清楚如何让autoFill与jQuery-UI一起工作……它曾经用于直接使用Autocomplete.js var thesource = “RegionsAutoComplete.axd?PID=3” $(function () { function log(message) { $(“”).text(message).prependTo(“#log”); $(“#log”).attr(“scrollTop”, 0); } $.expr[‘:’].textEquals = function (a, i, m) { return $(a).text().match(“^” + m[3] + “$”); }; $(“#regions”).autocomplete({ source: thesource, change: function (event, ui) { //if the value of the textbox does not match a suggestion, clear its value if ($(“.ui-autocomplete li:textEquals(‘” + […]