The Sea King Posted March 4, 2008 Share Posted March 4, 2008 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 More sharing options...
justsomeguy Posted March 4, 2008 Share Posted March 4, 2008 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 More sharing options...
The Sea King Posted March 5, 2008 Author Share Posted March 5, 2008 ok. thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.