Elīna Legzdiņa
Elīna Legzdiņa

Reputation: 317

slideup Jquery function cant seem to get it work?

Slideup jquery doesnt work.

$(".close_basket").click(function() {
        $(".mybasket").slideUp(1000);
    });

HTML :

<div class="mybasket">more code...

<div class="close_basket">
<span>Close <img src="images/close.png"  alt="*" /></span>
</div></div>

So I want to click on close basket and it should slide up and content mybasket disapear.

Upvotes: 0

Views: 58

Answers (1)

Vikas Arora
Vikas Arora

Reputation: 1666

Firstly, jsfiddle.. Check out the jsfiddle I have created. Secondly, see if you have included the jquery file in your code.

//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js

Thirdly, Check your css.

Upvotes: 1

Related Questions