I'm using javascript (and jQuery) to move between three box descriptions.
Javascript
<script type="text/javascript">
$(document).ready(function() {
$('#foo-box').show();
$('#bar-box').hide();
$('#bob-box').hide();
$('#bar-link').click(function() {
$('#foo-box').hide();
$('#bob-box').hide();
$('#bar-box').show();
return false;
});
});
</script>
html
<div id="stuff">
<a href="" id="foo-link">Foo</a>
<a href="" id="bar-link">Bar</a>
<a href="" id="bob-link">Bob</a>
<div id="foo-box">Hello</div>
<div id="bar-box">World</div>
<div id="bob-box">!!!</div>
</div>
But after clicking on a link I want it to be normal text. I can't seem to figure out a good, elegant way of doing this in javascript (I've found a few ways that may work, but are basically hacks).
Am I just being thick?
text-decoration
<a>
tags to do this anyways.