Not signed in (Sign In)

SkillShare - A place to discuss Web Standards and Web Design topics

Categories

Vanilla 1.1.9 is a product of Lussumo. More Information: Documentation, Community Support.

    •  
      CommentAuthoraleare
    • CommentTimeNov 22nd 2011
     permalink
    Hi everyone,
    I have made this script to open the extended text of a newsline "more reading" service:

    $(document).ready(function() {
    $(".morereading").click(function(){
    $(".newsBox").slideToggle("1");
    });
    });

    The problem is this script works pretty good only for only ONE newsline, but probably there will be more than one in the same html... If I put a different ID to every "more reading", how do I call their respective extended text by this ID given?

    All suggestions or modifications are welcome
    Thanks!

    Alejandra
  1.  permalink
    Post a live link to look at.

    Cheers, DS
Add your comments
    Username Password
  • Format comments as (Help)