2013年10月22日

获取select 的 val 和 text [转引]

摘要: (原文地址:http://apps.hi.baidu.com/share/detail/6152780)jQuery获取Select选择的Text和Value:语法解释:1. $("#select_id").change(function(){//code...}); //为Select添加事件,当选择其中一项时触发2. var checkText=$("#select_id").find("option:selected").text();//获取Select选择的Text3. var checkValue=$("#sel 阅读全文

posted @ 2013-10-22 16:19 coder狼 阅读(904) 评论(0) 推荐(0) 编辑

导航