trigger optional param is undefined
I am using jQuery version 1.10.2
I am trying to pass an optional arguments to the click event from trigger... but I am getting an undefined parameter instead..
$("[data-id='" + x[i].itemID + "']").trigger("click", 'something');// line from a different function
$(document.body).on("click", ".chb-g", function (event, param) {
alert(param);
});
so its fire, but the parameter get undefined, and so the 'event. Data' as well get undefined