Fork me on GitHub
摘要: jQuery获取Select选择的Text和Value:语法解释:1.$("#select_id").change(function(){//code...});//为Select添加事件,当选择其中一项时触发2.varcheckText=$("#select_id").find("option... 阅读全文
posted @ 2012-12-03 19:40 _落雨 阅读(166) 评论(0) 推荐(0) 编辑
摘要: textbox:varstr=$('#txt').val(); $('#txt').val("SetLblValue"); //文本框,文本区域: $("#text_id").attr("value",'');//清空内容 $("#text_id").attr("value",'test');... 阅读全文
posted @ 2012-12-03 19:19 _落雨 阅读(126) 评论(0) 推荐(0) 编辑
摘要: textbox:varstr=$('#txt').val(); $('#txt').val("SetLblValue"); //文本框,文本区域: $("#text_id").attr("value",'');//清空内容 $("#text_id").attr("value",'test');... 阅读全文
posted @ 2012-12-03 19:19 _落雨 阅读(119) 评论(0) 推荐(0) 编辑