Prototype JS로 Checkbox들 모두 선택 구현
0 1 2 3 Select All DeSelect All var checkboxes = []; checkboxes = $$('input[type=checkbox]'); var f = $('options'); // checkboxes 리턴값은 "[input 0, input 1, input 2, input 3]" checkboxes = f.getInputs('checkbox'); // 전체 선택 버튼 클릭하면 $('btnSelectAll').observe('click', function() { checkboxes.each(function(chkbox) { chkbox.checked = 1; }); }); // 전체 선택 해제 버튼 클릭하면 $('btnDeSelectAll').observe('click', f..
웹프로그래밍/js
2009. 11. 5. 16:35
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- JSON
- 한글
- iphone
- Debug
- laravel
- Docker
- CSS
- nginx
- centos
- 안드로이드
- nodejs
- PHP
- IOS
- sencha touch
- Mac
- javascript
- macos
- classic asp
- 워드프레스
- Android
- Prototype
- Wordpress
- IE
- iis
- mssql
- Linux
- git
- JQuery
- API
- ASP
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |
글 보관함