10. Using.keydown() oops try again


#1



I dont know whats wrong with my code.

error--->
Oops, try again. Did you call .keydown() on $(document) and pass it function(key){} ?


$(document).ready(function() {
    $(this).keydown( function(key){})
});


#2

Replace the keyword this with document.

$(document).ready(function() {
    $(document).keydown(function(key) { });
    });

#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.