Pressing 'Enter' in the form(input)?

You need that when you press enter in the input was the focus on the button, in IE everything is clear, and chrome, Opera,= leaving focus in the input to reloading the page. How to fix?
July 8th 19 at 15:43
1 answer
July 8th 19 at 15:45
$(document).on('keyup', "input[type='text']", function(event){
 if(event.keyCode === 13) { $(".mybutton").focus(); }

Find more questions by tags AngularCSSHTMLjQuery