How to use a function that takes arguments with jQuery’s change() method?
See event.data. The data is not passed as argument to handler, but as property of the event object: $(“select#test”).change({msg: “ok”}, function(event) { alert(event.data.msg); }); The handler always only accepts one argument, which is the event object. This is the reason why your alert shows “[object Object]”, your function is printing the event object. If you … Read more