JSFiddle - React, Tailwind, and code Playground

by ajayendra2707

HTML

<div>
    <select id='1' name="homepage_select_first" multiple="multiple" size="10">
        <option value=''>No Match</option>
        <option value="1">Test</option>
        <option value="2">Test 2</option>
        <option value="3">Test 3</option>
    </select>
</div>

JavaScript

//if we remove, then it will behave as normal means multiple select.
$('select[name*="homepage_select"]').removeAttr('multiple')