![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
jquery
hssdxh
这个作者很懒,什么都没留下…
展开
-
jquery 上下拖动div
html xmlns="http://www.w3.org/1999/xhtml" >head> title>无标题页title>script type="text/javascript" src="http://code.jquery.com/jquery-1.4.2.min.js">script>script type="text/javascript">转载 2013-07-26 14:26:21 · 546 阅读 · 0 评论 -
jquery操作select(取值,设置选中)
每一次操作select的时候,总是要出来翻一下资料,不如自己总结一下,以后就翻这里了。比如1、设置value为pxx的项选中 $(".selector").val("pxx");2、设置text为pxx的项选中 $(".selector").find("option[text='pxx']").attr("selected",true);转载 2013-08-07 14:24:37 · 396 阅读 · 0 评论 -
jquery $(this).attr $(this).val方法
$(this).attr(key); 获取节点属性名的值,相当于getAttribute(key)方法 $(this).attr(key, value); 设置节点属性的值,相当于setAttribute(key,value)方法 eg: var diywidgetid = $('#w_1').attr('diywidgetid'); //获取节点属性的值$转载 2013-10-08 09:37:20 · 844 阅读 · 0 评论