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?

  • Please mention jquery version used – Vishal Patil Jul 22 '15 at 6:03
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.

  • 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 – Alexis Rengifo Jul 22 '15 at 13:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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