兄弟们遇到问题了,CheckBox .attr('checked',false); Chrome和火狐第二次点击无效。
然后解决了把attr 改成了 prop
以后操作属性的时候各位记下,用prop 因为大家用的都是 jQuery 1.6+ 了!
贴部分代码
$("#selectAllEvent").click(function(){
var thisValue = $(this)...
分类:
其他好文 时间:
2014-09-09 18:20:29
阅读次数:
162
Jquery attribute selector非常普遍在日常开发中今天的case是,通过href 找aSCOM$("[href='#VMHost']")[0].click();必须加上[0], 之前返回的是一个数组.
分类:
Web程序 时间:
2014-09-09 15:38:48
阅读次数:
214
JQuery1.6以后,Prop的出现,让1.6以下的全选反选效果全部失效了。以下是修正后的版本:全选反选效果: $(".checkbox").click(function () { $('input[type=checkbox]').prop('checked', $(this).p...
分类:
Web程序 时间:
2014-09-09 15:31:38
阅读次数:
194
/******************编辑出现编辑框,删除恢复原始状态(Befin)**************************/ $(".editALink").click(function () { /*如果是“编辑”文字就变“保存”*/ var txt = $('#editALink....
分类:
其他好文 时间:
2014-09-09 15:31:28
阅读次数:
216
在父窗口中获取iframe中的元素IE下:格式:window.frames["iframe的name值"].document.getElementById("iframe中控件的ID").click(); 实例:window.frames["ifm"].document.getElementByI....
分类:
Web程序 时间:
2014-09-09 15:08:48
阅读次数:
222
题目原文:
Determine whether an integer is a palindrome. Do this without extra space.
click to show spoilers.
Some hints:
Could negative integers be palindromes? (ie, -1)
If you are thinking of conv...
分类:
其他好文 时间:
2014-09-09 13:04:18
阅读次数:
156
First open the broswer and type the following url in the address bar.
http://www.mongodb.com/
then you will view the the next page.
click the download mongodb button, and then regi...
分类:
数据库 时间:
2014-09-09 12:54:28
阅读次数:
269
$("#qqOnline").click(function(){
var a = $("qq").get(0);
var e = document.createEvent("MouseEvents");
e.initEvent('click', true, true);
a.dispatchEvent(e);
});...
分类:
Web程序 时间:
2014-09-09 12:35:48
阅读次数:
205
链接:http://ued.taobao.org/blog/2010/02/the-practice-guidelines-of-interaction-design-click-once/那么,如何减少用户的附加工作,保证用户工作效率呢?1,保证主操作以及用户常用功能的方便展现。这是用户快速完成任...
分类:
其他好文 时间:
2014-09-09 11:33:08
阅读次数:
173
需求:点击向前按钮进行向前翻页,向后按钮进行向后翻页,点击中间蓝色小圆圈可以来回自由切换
我的大概思路:先默认显示一个div 然后在原位置在隐藏一个div 给按钮添加click事件,转到下一个时 显示影藏的div,再把原来的div给隐藏掉...
分类:
Web程序 时间:
2014-09-06 20:03:24
阅读次数:
288