jQuery's slidedown() function deprecated?

38
August 24, 2019, at 10:20 AM

I'm trying to get my divs to slide down using $('#theDiv').slideDown('fast');

In the jQuery version I'm using, 3.2.1, I get a console error

TypeError: $(...).slideDown is not a function

Am I right that the function has been deprecated, and if so, why, and is there a replacement available?

It works when I use

<script src="https://code.jquery.com/jquery-1.10.2.js"></script>

but not

<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>

Answer 1

Not deprecated and should work.

You are using the slim version, which does not include the effects and ajax functions.

Use this one instead: https://code.jquery.com/jquery-3.3.1.min.js

READ ALSO
Adding disabled property doesn&#39;t seem to apply

Adding disabled property doesn't seem to apply

I have a button which causes an element to slideDown(), and meanwhile the animation is running I want to disable the button to avoid the user spamming, causing animation issues

33
Kendo grid multiselect dropdownlist issue using keyboard shortcut Ctrl + A key

Kendo grid multiselect dropdownlist issue using keyboard shortcut Ctrl + A key

I'm using a custom template on one of the column in my kendo gridEverything is fine, when data retrieve, the multiselect dropdownlist show correct value

18
Show the total value of increase and decrease amount of added cart and should be upadate also

Show the total value of increase and decrease amount of added cart and should be upadate also

Im doing e-commerce cart application in php laravel, i want to add products to cart completely in ajax and jqueryproblem is total amount of products is not adding to cart

51
How to empty a value from the first option of a select box option using javascript or jquery?

How to empty a value from the first option of a select box option using javascript or jquery?

Here's my codeIs it possible to empty the value of the first option using jquery/javascript ?

36