typeerror $(...).magnificpopup is not a function code example Example: magnificpopup is not a function pass $ in $(document).ready(function ($)