FACG5 / Later-team

0 stars 0 forks source link

Use <form> #15

Open RamyAlshurafa opened 6 years ago

RamyAlshurafa commented 6 years ago

https://github.com/FACG5/Later-team/blob/aaf09e86bb9ef670f8be49789e2e8d704cffb617/puplic/js/dom.js#L10 you made the eventListener on clicking the button it's better to put the input inside a <form> and make the input type submit and make the listener on its submission for the form so you can execute the code on clicking the button and on pressing on Enter key in the keyboard