JSFiddle - React, Tailwind, and code Playground

HTML

<div id="div_id">
    <select>
    <option>re</option>
    <option>2</option>
    </select>
</div>

JavaScript

$.each($('#div_id select'),function(index,value){
    var input_type = $(this).prop('type')
    var input_type2 = $(this).attr('type')
    alert(input_type);
    alert(input_type2);
    /*
    switch(input_type) {
         case 'checkbox':
            $(this).prop('checked',false);
            break;
                //more cases here
        default:
        this.value = '';
    }*/
});