JSFiddle - React, Tailwind, and code Playground
by BRANIS
HTML
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery.selectboxit/3.5.0/jquery.selectBoxIt.min.js"></script>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/jquery.selectboxit/3.5.0/jquery.selectBoxIt.css">
<select id="test" name="test">
<option value="value 1">value 1</option>
<option value="value 2">value 2</option>
</select>
JavaScript
$(function () {
// Calls the selectBoxIt method on your HTML select box
//var selectBox = $("select#test").selectBoxIt().data("selectBox-selectBoxIt");
// Writes all of the current plugin options to the console
//console.log(selectBox.options);
$("#test").selectBoxIt();
console.log($("#test").val());
});