Jump to content

I accept button.


The Sea King

Recommended Posts

I want to do a I accept button which is clicked text below will show up.here what I have so far:

<input id="downloadaccept_check" name="downloadaccept" nx="type:checkbox;targetId:downloads;prop:checked;targetProp:display;values:true,false;targetValues:block,none" type="checkbox" value="test"><label for="downloadaccept_check">Yes, I accept.</label></div><div id="downloads" nx="type:node;defaultStatus:display=none;restore:display"><div id="downloads" nx="type:node;defaultStatus:display=none;restore:display">Test</div>

also what does the "nx" mean/do?

Link to comment
Share on other sites

I've never seen the nx attribute, you should remove them. It's probably meta information for authoring software.

<input id="downloadaccept_check" name="downloadaccept" type="checkbox" value="test" onchange="document.getElementById('downloads').style.display = (this.checked ? 'block' : 'none');"><label for="downloadaccept_check">Yes, I accept.</label><div id="downloads" style="display:none;">Test</div>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...