im doing the wikipedia viewer thingy. i need help when press key"enter" do the same as clicking on button and if u have any suggestion on how to make the code look nicer please do so and if u do it would be nice if you could explain how and why it work that way.
$("#input").keydown(function(event){
if(event.keyCode == 13){
event.preventDefault();
$("#btn").click();
}
});
1 Like
Thanks alot!!! <3