摘要: 语法解释:1. $("#select_id").change(function(){//code...}); //为Select添加事件,当选择其中一项时触发2. var checkText=$("#select_id").find("option:selected").text(); //获取Select选择的Text3. var checkValue=$("#select_id").val(); //获取Select选择的Value4. var checkIndex=$("#select_id &qu 阅读全文
posted @ 2012-05-20 22:47 Bug山Bug海 阅读(303) 评论(0) 推荐(0)
摘要: <html xmlns="http://www.w3.org/1999/xhtml"><head><title>无标题 1</title><script type="text/javascript" src="Scripts/jquery-1.4.1-vsdoc.js"></script></head><body><form method="post"><select id="s2" 阅读全文
posted @ 2012-05-20 20:26 Bug山Bug海 阅读(428) 评论(0) 推荐(0)