Hello i have the following HTML:
<span class="slide1"><a href="#" class="slide1">Behavior</a></span>
<div id="second" class="content1">I’m not a good</div>
And the following jquery:
$(document).ready(function () {
$('#second').hide();
$('span.slide1').click(function () {
$('#second').slideToggle(800);
return false;
});
});
How can I make the hidden div toggle and show from the left side?
I mean when I click the element I want the div to appear to the left of the span element.
Here is what I have so far:
You can achieve the effect like this: http://jsfiddle.net/gVjFs/70/