jquery常用操作

This commit is contained in:
guobao.jiang 2015-12-18 17:03:30 +08:00
parent 60f0e24b62
commit dc7b9f1e2b
1 changed files with 11 additions and 0 deletions

11
jQuery/jQueryFreq.js Normal file
View File

@ -0,0 +1,11 @@
/**
* jQuery常用的一些操作
*/
// 从当前myId找最近为table的parent
$('#myId').closest('table');
// 是否选中 jQuery 1.6
$('#checkMeOut').prop('checked'); // true
$('#checkBox').prop('checked', true); // 设置为true