I have taken https://stackoverflow.com/a/11417877/3842368 and I'm now trying to modify it so that the hidden text appears via a slideDown() rather than show().
My fiddle is here: http://jsfiddle.net/LukeMcLachlan/h0gx2fpj/
You see on line 16 of the js that I have set:
$(this).next().slideDown("slow");
What this does is create a line break between the text "id vim mo" and "dus electram". These should instead flow on the same line, i.e. no line break. Using show(), as the original code does, works just fine, but it's ugly. I've been searching on SO for a solution and found one person suggesting that I should change the code to:
$(this).next().slideDown("slow").css("display", "inline");
the reason being that slideDown inserts a display:inline-block on the hidden < span >. However, when I change the code to this, slideDown stops working all together.
Can anyone provide me with a solution? I have tried slideToggle and still no luck.
Thanks.