Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

jquery enter submit

$('.input').keypress(function (e) {
  if (e.which == 13) {
    $('form#login').submit();
    return false;    //<---- Add this line
  }
});
Comment

PREVIOUS NEXT
Code Example
Javascript :: use application/x-www-form-urlencoded in javascript 
Javascript :: javascript get current month start and end date 
Javascript :: running shell commands javascript 
Javascript :: function to generate random color in javascript 
Javascript :: reset a select option jquery 
Javascript :: Could not resolve dependency: npm ERR! peer react@"17.0.1" from react-dom@17.0.1 
Javascript :: uuid react 
Javascript :: play sound javascript 
Javascript :: check if path is folder js 
Javascript :: react native flatlist get visible items 
Javascript :: react native animated sticker 
Javascript :: jquery stoppropagation 
Javascript :: javascript sort boolean value 
Javascript :: import map in angular 
Javascript :: javascript get current time 
Javascript :: execute javascript function when page loads 
Javascript :: javascript add attribute 
Javascript :: javascript listen for double click 
Javascript :: get value onChange from mat-select angular 
Javascript :: add button in table using javascript 
Javascript :: google script for loop 
Javascript :: javascrip reverse text 
Javascript :: nodejs command line arguments 
Javascript :: redirect in netlify react 
Javascript :: save on focus lost sublime 
Javascript :: count items in div jquery 
Javascript :: Unknown command: "create-react-app" 
Javascript :: a-z array javascript 
Javascript :: json server sorting 
Javascript :: jquery onchange 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =