Monday 17 February 2020

How to set default button in ASP.Net MVC click on ENTER Button




<script type="text/javascript">
            $(document).bind('keydown', function (e) {
                  // 13 is the enter key 
                  // .clssubmit is Submit button class/ID 
                if (e.which === 13) { // return
                    $('.clssubmit').trigger('click');
                }
            });
        </script>

No comments:

Post a Comment

Excel Sort values in ascending order using function TEXTJOIN

 Excel ::  Text ::  1,3,5,2,9,5,11 Result :: 1,2,3,5,5,9,11 Formula ::     TEXTJOIN ( ",",1,SORT(MID(SUBSTITUTE( A1 ,","...