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]
Link to comment
https://forums.phpfreaks.com/topic/29438-documentwrite/#findComment-135680
Share on other sites

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.