+ 5

How to do that ? Read the description

I want to make it like , if we type apple on the search bar and click on search button , a class (menu) will pop up and with a picture of an apple and with apple's description. Check this.. please if you know to do so help me out . https://code.sololearn.com/WADx6PV531Qw/?ref=app

15th Oct 2020, 2:09 PM
Shreeshanta Das
Shreeshanta Das - avatar
2 ответов
+ 7
The pop up should be a prescripted element, with display of none. The modal box contains a p element and an img element. In the if code block, get these two elements, change the innerText of p, and src of img, and then change display of modal box to block.
15th Oct 2020, 2:12 PM
Gordon
Gordon - avatar
+ 4
Gordon Sir can you please make an example of the code. I am very noob. I just started coding 1.5 months ago. I want you to make for me. For educational purpose
15th Oct 2020, 2:14 PM
Shreeshanta Das
Shreeshanta Das - avatar