Revision 69862f82
Von Sven Schöling vor fast 15 Jahren hinzugefügt
js/jquery.checkall.js | ||
---|---|---|
1 |
/* |
|
2 |
* jQuery SelectAll plugin 1.1 |
|
3 |
* |
|
4 |
* Copyright (c) 2009 Sven Sch?ling |
|
5 |
*/ |
|
6 |
|
|
7 |
;(function($) { |
|
8 |
|
|
9 |
$.fn.extend({ |
|
10 |
checkall: function(target) { |
|
11 |
var saved_this = this; |
|
12 |
return $(this).click(function() { |
|
13 |
$(target).each(function() { |
|
14 |
$(this).attr('checked', $(saved_this).attr('checked')); |
|
15 |
}); |
|
16 |
}); |
|
17 |
} |
|
18 |
}); |
|
19 |
|
|
20 |
})(jQuery); |
Auch abrufbar als: Unified diff
Checkall JQuery Plugin.