PDA

View Full Version : how to add check all in my script


booktoweb
09-12-2009, 12:21 PM
hi,

i programed a script have check box behind every item
i need to add button to sellect all and another button to deselect all
i added this but its not work

<span onclick="checkall(true)">select_all</span>
<span onclick="checkall(false)">deselect_all</span>

Lynne
09-12-2009, 02:17 PM
And you've defined the function checkall in the page? You can't just add those lines. You need to use javascript to select all or deselect all, so you need some code to do this, not just a couple of lines like you have.

booktoweb
09-14-2009, 01:58 AM
i know that
i used this function from /clientscript/vbulletin_global.js?v=382

--------------- Added 1252898168 at 1252898168 ---------------

i had make it

<input type="checkbox" name="allbox" onclick="js_check_all(this.form)" />