This is my jQuery function (that works) that when I click it, it my text appears:
$(function() {
$(".slide_down01").click(function () {
var $this = $(this),
id = $this.attr("id"),
div = $("." + id);
if( div.is(':hidden') ) {
$(this).find("span").html("▼");
} else {
$(this).find("span").html("►");
}
div.stop(true, true).slideToggle("fast");
return false;
});
})
... and this is my HTML :
<div id="cursor01">
<span id="slide01" class="slide_down01"><span>►</span> Title01 </span>
</div>
<div>
<a href="#slide01"></a>
<div id="cursor01">
<span id="slide01" class="slide_down01">
<span>►</span> Title01</span>
</div>
<div id="node1" class="slide01" style="display:none">
Text01,Text01
</div>
What I want is when I'm selecting this with my tab and press enter that the content appear.
Any clue guys? I will very appreciate it !