groenroos / minimalect

Minimal select replacement for jQuery
350 stars 52 forks source link

I would like to check whether its first element or not on Change. #61

Open umarfarookshaik opened 9 years ago

umarfarookshaik commented 9 years ago

Please find the Code below

           <script>
        $(function(){
            $("select").minimalect();
            $("#myselect").on('change',function(){
                alert(this.value);
            });
        });
    </script>

this.value gives the Selected Value, In minit wrapper, adds minit_first class, i tried to find using this but not succeeded.