Search found 4 matches

by merlin6b
Thu Aug 24, 2006 3:49 am
Forum: Javascript
Topic: Delete confirmation
Replies: 1
Views: 485

Delete confirmation

Hello. I have a button which call a JavaScript function: <input type="submit" name="delete" value="Delete" onClick="return confirmSubmit()" the JavaScript function : function confirmSubmit() { var agree=confirm("Are you sure you wish to continue?"); ...
by merlin6b
Thu Aug 24, 2006 3:00 am
Forum: Javascript
Topic: Check and Clear all checkbox
Replies: 6
Views: 1193

feyd & nickvd thank you very much for help! feyd your example work for me : if(this.checked) unCheckAll(); else checkAll(); but I have an issue. Please see my page: http://img209.imageshack.us/img209/5291/checkboxfx5.png When I put the checkbox on top, the "Check all" and "Clear a...
by merlin6b
Wed Aug 23, 2006 12:15 pm
Forum: Javascript
Topic: Check and Clear all checkbox
Replies: 6
Views: 1193

Sorry for stupid question but Where I need to put this ?
by merlin6b
Wed Aug 23, 2006 11:59 am
Forum: Javascript
Topic: Check and Clear all checkbox
Replies: 6
Views: 1193

Check and Clear all checkbox

I have two JavaScript function function checkAll() { var boxes = document.getElementsByTagName('input'); for (i = 0; i < boxes.length; i++) { if (boxes[i].type == 'checkbox') boxes[i].checked = true; document.getElementById('check_'+ boxes[i].value).style.background = '#FFFFCC'; } } function clearAl...