Toggle javascript not working on Safari - Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Go Back   Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more > Webmaster Tech > Programming > Other Programming - Perl, C++, Java, ASP, .NET Development

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 07-17-2009, 01:29 PM   #1 (permalink)
Junior Member
 
Join Date: Jul 2009
Posts: 3
Exclamation Toggle javascript not working on Safari

I have the following code, and it works in Firefox and IE that I tested so far.
It does not work in Safari though. Any thoughts?

I placed the code in the <head> section of my HTML. It basically toggles checkboxes.

Code:
<script language="javascript">
function toggle(source) {
  checkboxes = document.getElementsByName('items_to_add[]');
  for each(var checkbox in checkboxes)
    checkbox.checked = source.checked;
  }
</script>

Last edited by medj; 07-17-2009 at 01:32 PM.
medj is offline   Reply With Quote
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

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



» Sponsors

» Links

» Affiliates
Web Hosting
Online Backup Reviews
Marketing Find
Merchant Select
SiteMap Builder
Host Compare

» Links

» Sports Network
Paintball Forum
Football Forum
Hockey Forum
Golf Forum
Boxing Forum
Lacrosse Forum
Baseball Forum
SnowBoarding Forum
Soccer Forum
MMA Forum


All times are GMT -4. The time now is 06:42 PM.


Powered by vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2
Webmaster Forums
Web Hosting | Chicago Web Hosting | Web Hosting