I need a separate event if a select option is clicked by left vs right mouse button, something like this:
$('#sel').on('change', function(){
//if(changed using left button){console.log('left');}
//else if(changed using right button){console.log('right');}
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<select id='sel'>
<option>lorem</option>
<option>ipsum</option>
</select>
This should happen only if the value is changed.
Any idea?