Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

checkbox bug under ie mac

Status
Not open for further replies.

homard

Technical User
May 18, 2004
4
US
I've got 8 checkboxes in my page.
When I loop over them to "check all", I can't access one of them under ie mac.

The code is :

for(i=0;i<document.forms.formName.elements.length;i++)
document.forms.formName.elements.checked = true;

If anyone knows...
 
Try this:-

for(i=0;i<document.forms.formName.elements.length;i++)

document.forms.formName.elements.checked = true;



[sig][/sig]
 
Sorry, I meant to put:-

for(i=0;i<document.forms.formName.elements.length;i++)
document.forms.formName.elements.checked = true;

The after 'elements' uses the value i declared in the 'for' statement to reference each item in the array.

Unfortunately the TGML processor interpreted that as a request for italicisation on my last post!

[sig][/sig]
 
Oups,... me too !
I already put the [.i.] (without the dots ;-)
And it was also interpreted as a request for italicisation.

So I still don't have any answer !
 
When you say:-

When I loop over them to &quot;check all&quot;, I can't access one of them under ie mac.

Are you saying that one specific instance is not being accessed, or none of them. If it is a specific one - which is it?

Sorry about the previous misunderstanding :)

[sig][/sig]
 
no, that's ok (for the previous misunderstanding)

Actually, I can't access ONE of them. I mean seven out of eigth are checked by my function but only one remain unchecked.
There are 2 rows of 4 checkboxes and the one I can't access is sometimes the second of the first row and sometimes the second of the second row.

+ + + +
+ - + +

or

+ - + +
+ + + +

Weird isn't it !
 
Very strange indeed. Can you post a little of the relevant HTML - there may be something there? [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top