KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm using jQuery version 1.5. I am looking at jQuery's change() function and specifically at this bit: .change( [ eventData ], handler(eventObject) ) eventData: A map of data that will be passed to the event handler. handler(eventObject): A function to execute each time the event is triggered. What exactly is a "map of data" in JavaScript? How can I use the following test function as an event handler? var myHandler = function(msg){alert(msg);}; I've tried this: $("select#test").change(["ok"], myHandler); and the alert reports [object Object]
Tags (comma-separated)
Save Edits
Cancel