[Virtuemart] Error: $("vmlp_search_str").addEvent is not a function


Got this error while working on a Joomla 1.5.18, Virtuemart 1.1.4 website.

Error: $("vmlp_search_str").addEvent is not a function
Source File: http://www.tracyeinny.com.sg/staging2/modules/mod_vm_live_product/js/vmliveproduct.js
Line: 110

After debugging for a while. I found out that apparently there are conflicts between jQuery and Mootools (or other scripts).

To solve this, just need to add in the following scripts after jQuery import.
<script type="text/javascript">jQuery.noConflict();</script>

Hope that helps those who new to HTML, Javascript.

Comments

Popular posts from this blog

[Azure Websites PHP] Cross Domain request results in blank response page after Preflight HTTP OPTIONS

[Magento] Create Contact Form with Dynamic Recipient