Jump to content

document.write


Destramic

Recommended Posts

The "this" in toggle_checkboxes(this); will reference the <A> and not the form  like you want it to. But that's ok. You can just change the text of your anchor rather than replace the innerHTML of the div.

You're very close though.
Replace :
[code]var elements = the_form.parentNode.elements;[/code]
With:
[code] var elements =  document.getElementById('edit_remove').getElementsByTagName('INPUT');[/code]
that hasnt made it work either...
the problem is displaying this:
[code]
document.getElementById('toggle_checkboxes').innerHTML = "<a href=\"#\" onclick=\"toggle_checkboxes(this);\">Unselect all</a>"
[/code]

it wont display Unselect all

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.