I am using slidetoggle to open and close div, with easing using jquery.
<script>
function toggleText() {
$('#divToToggle').slideToggle("slow");
if ($('#divToToggle').css('display') == 'none') {
$('#aTag').html('Show');
}
else {
$('#aTag').html('Hide');
}
}
</script>
<a id="aTag" href="javascript:toggleText();">
Hide
</a>
The div it controls is <div id="divToToggle"></div>
Issue I have is onclick the text isnt changing , from Show to Hide and vice versa… I must be missing something very very simple..
Bugger also meant to ask, how do i attah a cookie to the event
Try this . This will work
EDIT :
Here is a simple function on how to set and delete a cookie – src –