y3di
y3di

Reputation: 673

Why does slideToggle() open the span twice?

http://jsfiddle.net/mBkM3/

Whenever I click the button, it opens twice and then closes.

Why doesn't it just alternate open and close with the proper .5 sec animation?

Upvotes: 1

Views: 373

Answers (1)

Arthur Halma
Arthur Halma

Reputation: 4001

Try to do it this way:

$(".add-entry").css('display','block').hide();

http://jsfiddle.net/mBkM3/3/

Upvotes: 3

Related Questions