Yuri Boyz
asked on
How to call function if Enter key is pressed from Touch or mobile device
I have a responsive menu. I call a Javascript function if enter key is pressed from mobile.
On desktop the following code works fine but how to call the function if enter key is pressed from touch devices?
On desktop the following code works fine but how to call the function if enter key is pressed from touch devices?
jQuery("#input").keypress(function(e) {
if(e.which == 13) {
RunFunction();
}
});
thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Can I also use keypress event?