JSFiddle - React, Tailwind, and code Playground
by muthukumar0705
HTML
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<div id="menubar">
<select id="test">
<option>test1</option>
<option>test2</option>
<option>test3</option>
</select>
</div>
<script>
$().ready(function(){
$("#test").change(function(event){
alert('test');
if($(this).find('option:selected').hasClass('actived'))
alert('already selected');
else
$(this).find('option:selected').addClass('actived');
});
});
</script>