I am getting an error on this, what have I missed?
My Code:
$function(){
$(".product-add-link").on("click", BindAddProduct);
}
Firefox says:
missing ; before statement
Chrome says:
unexpected token {
I am getting an error on this, what have I missed?
My Code:
$function(){
$(".product-add-link").on("click", BindAddProduct);
}
Firefox says:
missing ; before statement
Chrome says:
unexpected token {
jQuery $
accepts a function as parameter
. You missed (
for passing your function.
Please try below
$(function(){
$(".product-add-link").on("click", BindAddProduct);
});