MCQs > IT & Programming > JQuery > Which should be placed in the code below to alert data passed to event handler? function myHandler( event ) { // code .. select from the options below } $( '#box').on( 'click', { foo: 'bar' } , myHandler );

JQuery MCQs

Which of the following should be placed in the code below to alert data passed to event handler? function myHandler( event ) { // code .. select from the options below } $( "#box").on( "click", { foo: "bar" } , myHandler );

Answer

Correct Answer: alert( event.data.foo);

Explanation:

Note: This Question is unanswered, help us to find answer for this one

JQuery Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

JQuery Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it