SaHiN 14 Posted December 30, 2012 Report Share Posted December 30, 2012 Hi, my code, ui html panel("<table class=\"table table-bordered\"> <tr> <td><label class=\"checkbox\"><input name=\"Wordpress\" type=\"checkbox\" variable=\"#wp\" fillwith=\"checked\"/><strong><font size=\"4\">Wordpress</font></strong></label></td> <td><label class=\"checkbox\"><input name=\"Myopera\" type=\"checkbox\" variable=\"#myopera\" fillwith=\"checked\"/><strong><font size=\"4\">Myopera</font></strong></label></td> <td><label class=\"checkbox\"><input name=\"edublog\" type=\"checkbox\" variable=\"#edublogs\" fillwith=\"checked\"/><strong><font size=\"4\">Edublog</font></strong></label></td> <td><label class=\"checkbox\"><input name=\"wallinside\" type=\"checkbox\" variable=\"#wallinside\" fillwith=\"checked\"/><strong><font size=\"4\">Wallinside</font></strong></label></td> </tr> <tr> <td><label class=\"checkbox\"><input name=\"Tumblr\" type=\"checkbox\" variable=\"#tumblr\" fillwith=\"checked\"/><strong><font size=\"4\">Tumblr</font></strong></label></td> <td><label class=\"checkbox\"><input name=\"Github\" type=\"checkbox\" variable=\"#github\" fillwith=\"checked\"/><strong><font size=\"4\">Github</font></strong></label></td> <td><label class=\"checkbox\"><input name=\"livejournal\" type=\"checkbox\" variable=\"#livejournal\" fillwith=\"checked\"/><strong><font size=\"4\">Livejournal</font></strong></label></td> <td><label class=\"checkbox\"><input name=\"Busythumbs\" type=\"checkbox\" variable=\"#busythumbs\" fillwith=\"checked\"/><strong><font size=\"4\">Busythumbs</font></strong></label></td> </tr> <tr> <td><label class=\"checkbox\"><input name=\"xanga\" type=\"checkbox\" variable=\"#xanga\" fillwith=\"checked\"/><strong><font size=\"4\">Xanga</font></strong></label></td> <td><label class=\"checkbox\"><input name=\"blog\" type=\"checkbox\" variable=\"#blog\" fillwith=\"checked\"/><strong><font size=\"4\">Blog</font></strong></label></td> <td><label class=\"checkbox\"><input name=\"travelblog\" type=\"checkbox\" variable=\"#travelblog\" fillwith=\"checked\"/><strong><font size=\"4\">Travelblog</font></strong></label></td> <td><label class=\"checkbox\"><input name=\"journalhome\" type=\"checkbox\" variable=\"#journalhome\" fillwith=\"checked\"/><strong><font size=\"4\">Journalhome</font></strong></label></td> </tr> </table>", 650) how to make select all checkbox? Quote Link to post Share on other sites
Legend 181 Posted December 30, 2012 Report Share Posted December 30, 2012 ui html panel("<script language=\"JavaScript\">function toggle(source) \{ checkboxes = document.getElementsByName(\'foo\'); for(var i in checkboxes) checkboxes.checked = source.checked;\}</script><input type=\"checkbox\" onClick=\"toggle(this)\" /> Toggle All<br/><input type=\"checkbox\" name=\"foo\" value=\"bar1\"> Bar 1<br/><input type=\"checkbox\" name=\"foo\" value=\"bar2\"> Bar 2<br/><input type=\"checkbox\" name=\"foo\" value=\"bar3\"> Bar 3<br/><input type=\"checkbox\" name=\"foo\" value=\"bar4\"> Bar 4<br/>", 120) be forewarned though... checkboxes are buggy as hell in ubot... there is an alternative here... 1 Quote Link to post Share on other sites
SaHiN 14 Posted December 30, 2012 Author Report Share Posted December 30, 2012 thank you Duane Quote Link to post Share on other sites
LazyBotter 188 Posted January 12, 2013 Report Share Posted January 12, 2013 You could always add a button to call a define command which will set all your checkbox variables to true... Quote Link to post Share on other sites
Legend 181 Posted January 12, 2013 Report Share Posted January 12, 2013 right... that is basically what is suggested in the alternative I posted... Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.