Seems I was wrong, and that the hide function actually does decide if
something is block or inline, my bad.
Thanks for this David, works a treat. I took a look at Sean's solution as
well and that worked too, but this works out a little simpler now that it
actually does do what I wanted in the first place, silly me.
Thanks again to the pair of you :)
Luke
DavidIcreate wrote:
> i think you look for something like this
>
> $(function(){
> // create link and hide spoiler
> $('.spoiler').before('<span
> class="spoilertoggle">Spoiler</span>').hide();
> // toggle the spoilers
> $('span.spoilertoggle').toggle(
> function(){ $(this).next('.spoiler').show(); },
> function(){ $(this).next('.spoiler').hide(); }
> )
> });
--
View this message in context:
http://www.nabble.com/Creating-a-visible-link-to-show-and-unhide-content.-tf3402869.html#a9481727
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/