Answer & Solution
$('#myDiv').on('mouseover', function() {...});
$('#myDiv').on('mouseover', function() {...});
How to bind a mouseout event handler to all images with the class 'imgClass' using jQuery?
A). $('.imgClass').on('mouseout', function() {...});
B). $('.imgClass').mouseout(function() {...});
C). $('.imgClass').bind('mouseout', function() {...});
D). $('.imgClass').mouseleave(function() {...});
How to bind a keydown event handler to the document using jQuery?
A). $(document).on('keydown', function() {...});
B). $(document).addEventListener('keydown', function() {...});
C). $(document).bind('keydown', function() {...});
D). $(document).keydown(function() {...});
Which jQuery method is used to bind event handlers for future elements?
A). $('#element').bind();
B). $('#element').live();
C). $('#element').on();
D). $('#element').delegate();
What jQuery method is used to bind event handlers to elements with specific CSS classes?
A). $('.className').on();
B). $('.className').attach();
C). $('.className').bind();
D). $('.className').delegate();
How to bind a double click event handler to all paragraphs on a page using jQuery?
A). $('p').on('dblclick', function() {...});
B). $('p').addEventListener('dblclick', function() {...});
C). $('p').dblclick(function() {...});
D). $('p').bind('dblclick', function() {...});
Which jQuery method is used to bind event handlers to elements that match a selector, now and in the future?
A). $(document).on();
B). $(document).bind();
C). $(document).live();
D). $(document).delegate();
Which jQuery method is used to bind event handlers to the document itself?
A). $(document).on();
B). $(document).bind();
C). $(document).delegate();
D). $(document).live();
What jQuery method is used to bind event handlers to elements based on their position within the document?
A). $('#element').hover();
B). $('#element').position();
C). $('#element').scroll();
D). $('#element').offset();
How to bind a keypress event handler to all input elements with the class 'textInput' using jQuery?
A). $('.textInput').on('keypress', function() {...});
B). $('.textInput').addEventListener('keypress', function() {...});
C). $('.textInput').bind('keypress', function() {...});
D). $('.textInput').keypress(function() {...});
How to attach a click event handler to a button element with the id 'myButton' using jQuery?
A). $('#myButton').on('click', function() {...});
B). $('#myButton').addEventListener('click', function() {...});
C). $('#myButton').bind('click', function() {...});
D). $('#myButton').click(function() {...});