In my project, I use jQueryclient side and mooToolsadmin side. I would like to be able to write some of the code (google maps functions, etc.) that will be common for both of these libraries.
Is it possible to check if libraries are loaded jQueryor mooTools, and use the correct behavior?
$(document).ready(function() {}); or window.addEvent('domready', function(){});
$('#id'); or $('id');
$('googleMapLocalize').addEvent('click', function(){}); or $('googleMapLocalize').bind('click', function(){});
What is the best way?
source
share