$(".toggle-title").click(function () {
var thistitle=$(this);
$(this).next(".toggle-details").slideToggle("fast", function(){
var titletext=($(this).is(":visible")) ? "Read Less" : "Read More";
$(thistitle).html(titletext);
});
});
Do you mean move the title below the content only after a toggle, or always? If always, just move the title div below the content, and in the Javascript, use prev() instead of next().
inside the div, put an image tag. Then in your javascript, select the image, and change the src attribute.
Don’t apply display:none within the CSS. Use javascript instead.
So it actually functions? Not sure I understand, my code works how I need it to
1.) Perfect! prev() is what I was looking for.
2.) Thanks
3.) Just what I thought but not sure how to add it with javascript, I’ll see if I can find examples online cheers.
So, got me wondering now Force Flow. If it works how I need it to by using .prev() why did you change the code?
Whats the benefits?