Answer & Solution
$('element').on({...});
$('element').on({...});
Which jQuery method is used to bind event handlers for future elements?
A). $('element').live();
B). $('element').attach();
C). $('element').on();
D). $('element').delegate();
Which jQuery method is used to bind event handlers to the document itself?
A). $(document).on();
B). $(document).bind();
C). $(document).attach();
D). $(document).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 with a specific CSS class?
A). $('.class').on();
B). $('.class').attach();
C). $('.class').bind();
D). $('.class').delegate();
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 method is used to bind a one-time event handler to a DOM element in jQuery?
A). $('element').once();
B). $('element').one();
C). $('element').bindOnce();
D). $('element').on('once', 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();
How to bind a keydown event handler to the document using jQuery?
A). $(document).keydown(function(event) {...});
B). document.addEventListener('keydown', function(event) {...});
C). $('document').on('keydown', function(event) {...});
D). $('document').keydown(function(event) {...});
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() {...});
How to bind a blur event handler to all<input>
elements using jQuery?
A). $('input').bind('blur', function() {...});
B). $('input').blur(function() {...});
C). $('input').on('blur', function() {...});
D). $('input').addEventListener('blur', function() {...});