Jump to content
UBot Underground

How to make a field appear upon clicking a checkbox


Recommended Posts

Try this, see if you can use it.  On a normal web page works perfectly:

 

<span onclick="
if (this.parentNode.getElementsByTagName('img')[0].style.display != '') {
 this.parentNode.getElementsByTagName('img')[0].style.display = '';
 this.innerHTML = '<b>CLICK ME ~~~> </b><a href=\'#\' style=\'text-decoration: none;\' onClick=\'return false;\'>(Spoiler HIDE)</a>';
} 
else {
 this.parentNode.getElementsByTagName('img')[0].style.display = 'none';
 this.innerHTML = '<b>CLICK ME ~~~> </b><a href=\'#\' style=\'text-decoration: none;\' onClick=\'return false;\'>(Spoiler SHOW)</a>';
}
">
<b>CLICK ME ~~~> </b><a href="#" style="text-decoration: none;" onclick="return false;">(Spoiler HIDE)</a></span>
<div>
<img style="max-width: 700px; overflow: hidden;" src="http://www.firefoxgoogletoolbar.com/ff1.jpg" border="0">
</div>

 

 

 

I tried to substitute this with a dropdown or checkbox, any suggestions as to how I can add them in vs, an image?

 

<img style="max-width: 700px; overflow: hidden;" src="http://www.firefoxgoogletoolbar.com/ff1.jpg" border="0">
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...