Materialize Cssmodal showing $(..)leanmodal is not a function Error

Aneez picture Aneez · Nov 10, 2015 · Viewed 10.5k times · Source

When I try to create a a materialize css moal using the below code , I am getting Error.

Error Image

I tried this question also.

Answer

Bruno Silvano picture Bruno Silvano · Jan 16, 2017

Maybe you're using Materialize 0.97.8, which doesn't support leanModal anymore (it change simply to modal - check out Materialize Documentation.

I had this issue also and solved it by using Materialize 0.97.7.