Skip to content

Tag Reference

Lauren Ancona edited this page Aug 31, 2018 · 1 revision

Forms

Get value of dropdown

Tag - Custom HTML

<script>
    var eventType = 'dropdownSelect'; // Modify this to reflect the event type you want to listen for
  	var useCapture = true;
  	
    if (document.addEventListener) {
        document.addEventListener(eventType, {{JS - Generic Event callback}}, useCapture);
    } else if (document.attachEvent) {
        document.attachEvent('on' + eventType, {{JS - Generic Event callback}});
    }
</script>
Clone this wiki locally