javascript help
Posted: Thu Jun 07, 2007 12:49 am
feyd | Please use
please help
Thank you
Smackie
feyd | Please use[/syntax]
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
alright i have a bbcoding on my site but for some reason my javascript isn't working for some odd reason.. im not getting any errors on the site but i am getting an error on the status bar.
here is the javascript.
[syntax="javascript"]function checkAll(){
for (var i=0;i<document.forms[0].elements.length;i++) {
var e=document.forms[0].elements[i];
if ((e.name != 'allbox') && (e.type=='checkbox')) {
e.checked=document.forms[0].allbox.checked;
}
}
}Thank you
Smackie
feyd | Please use[/syntax]
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]