MCQs > IT & Programming > JQuery > Correct way to check which key was pressed?

JQuery MCQs

Which of the following is the correct way to check which key was pressed? 

Answer

Correct Answer: $('#txtValue').keypress(function(event){ alert( String.fromCharCode( (event.keyCode) ) ); });

Explanation:

Note: This Question is unanswered, help us to find answer for this one

JQuery Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

JQuery Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it