jquery下操作HTML控件的实现代码

时间:2010-01-12    点击:109   
操作下拉框[Select]

1.  $("#seelctId").append("<option value='"+optionval+"'>"+text+"</option>");//给下拉框增加  一下option选项 (ddlSayTo这是下拉框的ID)

  $("#seelctId").val(optionval);//选中刚才增加的option

2.  $("#seelctId option:selected").text();//得到当前选中的选项的文本值

  $("#seelctId").val();//得到当前选中的选项的option值

firefox firebug中文入门教程 脚本之家新年特别版
Firefox+FireBug使JQuery的学习更加轻松愉快
20个非常棒的Jquery实用工具 国外文章
海量经典的jQuery插件集合
JQuery获取元素文档大小、偏移和位置和滚动条位置的方法集合
> 返回     
地址:上海市普陀区胶州路941号长久商务中心 电话: QQ:
© Copyright 2012 上海网络 Product All Rights Reserved