generate functionSun, 11 Dec 2022

detect enter key and any focused input field

function detectEnterKey(e, element) { if (e.which === 13) { $(element).focus(); } }

Javascript
Generate More

Want to kickstart your project?Use the new AI Studio to create your code