jquery onclick for expanding text content on the right?

Posted by Jon Snow on Stack Overflow See other posts from Stack Overflow or by Jon Snow
Published on 2013-06-27T15:36:52Z Indexed on 2013/11/06 21:54 UTC
Read the original article Hit count: 175

Filed under:
|
|
|

Hi I am trying to achieve the same effect as it is on hover on my fiddle, I would like to use jquery click/toggle to expand the content instead of seeing it on hover

I am trying the basic addClass with jquery/css but somehow it's breaking off and cannot figure it out how to work properly

Would appreciate any help or advice on the following, thanks a lot in advance,

here is the fiddle i created with the jquery I am using

$(document).ready(function(){
  $(".gamewrapper").click(function(){
    $(".gamewrapper").addClass("expand");
  });
});

Thanks

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about html5