随笔分类 -  Jquery对html元素的基本操作方法

Jquery对html元素的基本操作方法
摘要://这是点击绑定按钮标签绑定的按钮" onclick="a();"/>//这是class="gs-title"的标签上海地区_新闻中心_新浪网View Code //这是按钮的函数,为了将class为.gs-title的标签绑定click函数function a() { $(".gs-title").bind('click', function() { alert($(this).attr("href")); window.location.href='www.baidu.c 阅读全文
posted @ 2014-02-25 10:59 开始奋斗的女coder 阅读(804) 评论(0) 推荐(0)
摘要:jQuery获取Select选择的Text和Value: 1. var checkText=jQuery("#select_id").find("option:selected").text(); //获取Select选择的Text 2. var checkValue=jQuery("#selec... 阅读全文
posted @ 2014-02-11 22:13 开始奋斗的女coder 阅读(59) 评论(0) 推荐(0)