Question: There are times when you might want to programmatically trigger an event, instead of simply reacting to user input directly. Given this markup, Which choice will NOT cause a click event to the select box when the button is clicked?

  1. `$('button').on('click.myApp', (function() { $('input[type=select]').trigger('click'); });`
  2. `$('button').on('click', (function() { $('input[type=select]').click()); });`
  3. `$('button').trigger(function() { $('input[type=select]').click(); });`
  4. `$('button').click(function() { $('input[type=select]').click(); });`

Answer: The correct answer of the above question is Option A:`$('button').on('click.myApp', (function() { $('input[type=select]').trigger('click'); });`