W3Schools is optimized for learning, testing, and training. This method is a shortcut for .on( "change", handler ) in the first two variations, and .trigger( "change" ) in the third.. To trigger the event manually, apply Attaches a change event to the select that gets the text for each selected option and writes them in the div. For better Web compatibility (and for technical reasons), when Firefox is in multi-process mode the elements,