Answer & Solution
$('element').on({...});
$('element').on({...});
How to bind a scroll event handler to the window using jQuery?
A). $(window).scroll(function() {...});
B). window.addEventListener('scroll', function() {...});
C). $('window').bind('scroll', function() {...});
D). $('window').on('scroll', function() {...});
How to unbind all event handlers of a specific type from all<button>
elements using jQuery?
A). $('button').unbind('click');
B). $('button').off('click');
C). $('button').removeEventListener('click');
D). $('button').off();
Which jQuery method is used to bind event handlers to elements with a specific CSS class?
A). $('.class').on();
B). $('.class').attach();
C). $('.class').bind();
D). $('.class').delegate();
How to bind a change event handler to all<select>
elements using jQuery?
A). $('select').on('change', function() {...});
B). $('select').addEventListener('change', function() {...});
C). $('select').bind('change', function() {...});
D). $('select').change(function() {...});
Which jQuery method is used to bind event handlers to elements that match a selector, now and in the future?
A). $(document).on(eventType, selector, function() {...});
B). $(document).bind(eventType, selector, function() {...});
C). $(document).delegate(selector, eventType, function() {...});
D). $(document).live(selector, eventType, function() {...});
How to bind a mouseover event handler to all<div>
elements using jQuery?
A). $('div').on('mouseover', function() {...});
B). $('div').addEventListener('mouseover', function() {...});
C). $('div').bind('mouseover', function() {...});
D). $('div').mouseover(function() {...});
Which jQuery method is commonly used to bind event handlers to DOM elements?
A). $('element').bind();
B). $('element').attach();
C). $('element').on();
D). $('element').trigger();
Which jQuery method is used to bind event handlers to elements that match a selector, now and in the future?
A). $(document).delegate(selector, eventType, function() {...});
B). $(document).live(selector, eventType, function() {...});
C). $(document).on(eventType, selector, function() {...});
D). $(document).bind(eventType, selector, function() {...});
Which jQuery method is used to bind event handlers for future elements?
A). $('element').live();
B). $('element').attach();
C). $('element').on();
D). $('element').delegate();
How to bind a submit event handler to all<form>
elements using jQuery?
A). $('form').on('submit', function() {...});
B). $('form').addEventListener('submit', function() {...});
C). $('form').bind('submit', function() {...});
D). $('form').submit(function() {...});