How can I activate a “left” or “right” keyboard arrow push on click of a div.
So for example
$('.item').click(function(){
keyCode(37);
});
(I know that 37 is left)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You would go like
You can of course replace
document.bodywith any other node that has akeypressorkeydownevent bound to it.Reference:
.trigger()