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

How to highlight selected text in notepad++

  –> To highlight a block of code in Notepad++, please do the following steps step-1  :- Select the required text. step-2  :- Right click...