Reply
Check All Function
Old 04-10-2008, 12:13 PM Check All Function
Skilled Talker

Posts: 92
I'm trying to implement a check all button for a message system on my website, but can't seem to get it to work....Currently I have this....

The values of the checkboxes are always different, but their name is the same. But I believe the function to check all just looks for inputs that are checkboxes and enables them....can anyone figure out whats going wrong?

The error I get when I try this out is...gi is not defined

Is this because the code that uses the function is an include to the original html with the include of the js file?


UPDATE: nvm....the gi wasn't in there js file...it works now.

Last edited by kbfirebreather : 04-10-2008 at 12:17 PM. Reason: I fixed it
kbfirebreather is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 04-12-2008, 05:32 AM Re: Check All Function
chrishirst's Avatar
Super Moderator

Posts: 11,866
Location: Blackpool. UK
For future reference;

We can't debug code unless you give us the code or (preferably) a URL to where the problem (and the code) is.

And:
http://www.candsdesign.co.uk/article...ll-checkboxes/
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 04-12-2008, 08:02 PM Re: Check All Function
Skilled Talker

Posts: 92
I did originally have the code, but took it off since I resolved the problem, but thank you
kbfirebreather is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Check All Function
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.11849 seconds with 13 queries