Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
        function toggle(element) {
        var tag = document.getElementById(element);
        if (tag.style.display=="") {
            tag.style.display='none';    
        } else {
            tag.style.display="";
        }
    }
</script>
</head>
<body>
  <a href="javascript:toggle('question1')">FAQ Question goes here</span>
    <div id="question1" style="display:none">
        <p>FAQ Answer goes here</p>
    </div>
</body>
</html>
 
if (document.getElementById('hello')) {
  document.getElementById('hello').innerHTML = 'Hello World - this was inserted using JavaScript';
}
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers