随笔分类 - 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
阅读全文
摘要:jQuery获取Select选择的Text和Value: 1. var checkText=jQuery("#select_id").find("option:selected").text(); //获取Select选择的Text 2. var checkValue=jQuery("#selec...
阅读全文

浙公网安备 33010602011771号