jquery常用操作
This commit is contained in:
parent
60f0e24b62
commit
dc7b9f1e2b
|
@ -0,0 +1,11 @@
|
|||
/**
|
||||
* jQuery常用的一些操作
|
||||
*/
|
||||
|
||||
// 从当前myId找最近为table的parent
|
||||
$('#myId').closest('table');
|
||||
|
||||
// 是否选中 jQuery 1.6
|
||||
$('#checkMeOut').prop('checked'); // true
|
||||
|
||||
$('#checkBox').prop('checked', true); // 设置为true
|
Loading…
Reference in New Issue