I have created widget which is using jquery latest version 1.11.1. When i adding my widget into 3rd party website.
And 3rd party website have lower version jquery e.g. 1.5 in my case (it could be any version). 3rd party website jquery don't have the latest function.
e.g Latest version function
jQuery(document).on("click", function(e) {
...
});
So i am getting error function is undefined. How to resolve this type of issue.
Or did i have created the widgets wrong way that depend on jquery? If anyone know how to implement java script widget that don't depend on 3rd party library like jquery different version.
.on()use.live()jQuery(document).click(function(e) { })- why do you want to use.on()in this case as you are not using any delegation