Home > Web Front-end > JS Tutorial > body text

js 动态为textbox添加下拉框数据源的方法_javascript技巧

WBOY
Release: 2016-05-16 16:51:15
Original
1193 people have browsed it
复制代码 代码如下:

$("#").change(function () {
$("#").val("");//清除文本框
$("#").unautocomplete();//清除autocomplete
$("#").autocomplete('Ajax/AjaxCusCarEssentialVersion.aspx', {//添加autocomplete
width: 200,
multiple: false,
matchContains: true,
extraParams: {//传递的参数
"CarBrand": function () {
return $("#").val();
}
}
});
});
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!