Wiki Viewer Help

Wiki Viewer Help
0

#1

link: http://codepen.io/romit016/pen/YWYrao?editors=1010

I made this application few days ago. One of my friends from fcc reviewed and said that search key won’t work on pressing enter from keyboard. Now the problem is SEARCH button won’t work when clicked.

Please suggest the solution that both the events run properly.


#2

You want two events to be handled, ‘click’ and ‘keypress’. Both events will be handled in the same way. Write one function that will be called when either the enter key is pressed or when the search button is clicked.