JSFiddle - React, Tailwind, and code Playground

by Chase Wilson

HTML

<div >hello</div>
<a href="#">&nbsp;</a>
<select id="drop-downname" name="drop-downname" class="drop-down">
    <option value="1">Item 1</option>
    <option value="2">Item 2</option>
</select>

JavaScript

$$('.drop-down').each(function(el){
    el.addEvent('change',function(e) {
        var href_obj = $(this).getPrevious();

        new Event(e).stop();
        var req = new Ajax(href_obj.getProperty('href'),{
            method : 'get',
            update: href_obj.getPrevious()
        }).request();

    });
});