What does the challenge wording mean? I am confused on whether to use two separate event handlers for each element like so:
FormHandler.prototype.addOrderHandler = function (fn) {
console.log('Setting input handler for order');
this.$formElement.on('input', '[name="coffee"]', function (event){
var order = event.target.value;
FormHandler.prototype.addStrengthHandler = function (fn) {
console.log('Setting input handler for strength');
this.$formElement.on('input', '[name="strength"]', function (event){
var order = event.target.value;
or use one event handler for the two elements:
FormHandler.prototype.addStrengthHandler = function (fn) {
console.log('Setting input handler for strength');
this.$formElement.on('input', '[name="strength"]', '[name="strength"]' function (event){
var order = event.target.value;
Any ideas?