摘要: 查询被选中的option中的内容当然也可以用 alert($("#sel option[@selected]").text()); 稍微解释一下: select[@name='sel'] option[@selected] 表示具有name 属性,并且该属性值为’sel’ 的select元素 里面的具有selected 属性的option 元素;可以看出有@开头的就表示后面跟的是... 阅读全文
posted @ 2008-11-04 10:16 herobeast 阅读(368) 评论(0) 推荐(0)