Open RamyAlshurafa opened 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
<form>
submit
Enter
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 typesubmit
and make the listener on its submission for the form so you can execute the code on clicking the button and on pressing onEnter
key in the keyboard