1

I am using Drupal 7 and the Google Map Field module. When I click on the Insert Map button, the Firebug console shows this:

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

It seems like I need jQuery.noConflict(), but why is this happening?

1
  • Please mention jquery version used Commented Jul 22, 2015 at 6:03

1 Answer 1

1

Because Drupal ships with jQuery 1.4 and prop() was added in 1.6.

You could mess about with a second version of jQuery and noConflict, or you can just install the jQuery Update module and let it handle things for you.

If that won't work (e.g. it produces other conflicts with existing scripts), try jQuery Multi instead.

1
  • It was exactly as you said. I installed jQuery Update and set up jQuery 1.7 for both, admin and general themes. Now Insert map works without a problem. Thanks @Clive Commented Jul 22, 2015 at 13:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.