TShooters, mate that was one of the first places I went.
However I don't understand how to apply the examples and description in there to my javascript because I don't see how it relates..
Step 1
I understand I need to have a jscript_ prefix for my .js file.
Code:
<script type="text/javascript">
function showStuff(id) {
document.getElementById(id).style.display = 'block';
}
</script>
This goes into my js file. Capiche.
Step 2
Code:
<p><a href="#" onclick="showStuff('answer1'); return false;">What price are your apples?</a><br>
<span id="answer1" style="display: none;">Our apples are 30 pence </span></p>
I want this on my product listing page, so I place it in productlisting.php.
This is causes a problem because I don't know how to get the syntax correct. When I do it, my whole product listing page shows up as blank.
I hope this illustrates where I am going wrong with this.
Bookmarks