How to check if function exist?
problem is solved. its works:
if ($.fn.payment) {
//do something
}
Try like this
if (typeof payment === "function")
{
// Do something
}
problem is solved. its works:
if ($.fn.payment) {
//do something
}
Try like this
if (typeof payment === "function")
{
// Do something
}