jquery对html中的下拉框select的操作
来源:互联网 发布:卡易信5.0源码 编辑:程序博客网 时间:2024/05/16 12:02
在页面上添加一个div
<div id="wallgraphics"> <h3>所属类别:</h3><select id="type-select" /></div>
jquery,ajax请求,动态添加下拉框数据
$(function(){ $.ajax({ url: "AddWallType.aspx/GetWallType", data: "{}", success: function(data) { var json = data.d; json = eval(json); var html = ""; for (var i = 0; i < json.length; i++) { html += "<option>" + json[i].WallType + "</option>"; } $("#type-select").append(html); updateSession(); } });});当下拉框的索引发生变化时,触发更新事件
$("#type-select").live('change', function() { update();});
取得下拉框选中项的value
var title = $("#type-select option:selected").val();
- jquery对html中的下拉框select的操作
- Jquery对select 下拉列表的操作
- jQuery对下拉框Select操作总结
- jQuery对下拉框Select操作总结
- jQuery对下拉框Select操作总结
- jQuery对下拉框Select操作总结
- jQuery对下拉框Select操作总结
- jQuery中对select下拉框的基本操作
- jquery对select下拉框的一些基本操作
- jquery对select下拉框的基本操作大全
- jQuery操作select下拉框的方法
- js对select下拉框的操作
- 对下拉框Select的操作
- jquery select下拉框操作
- jquery操作下拉框select
- jquery操作select下拉框
- jquery操作下拉框select
- jQuery操作select下拉框
- android 动画(摇摆,闪烁)
- 求和
- 第十周上机任务(九九乘法表)
- Android自动开启GPS
- 我的第二十二个C++上机报告(吃饭,睡觉,打豆豆,,,)
- jquery对html中的下拉框select的操作
- mysql-mmm有关mmm_control 参数测试(完整版)
- 输出完数
- Java判断文件的编码类型。
- 【互动出版网】10月新书榜活动
- 贪财的富翁
- c语言在降序数组中插入元素依然降序
- 求出1000内所有完数
- 有用的