+ 1

[Solved] Why the gif isn't loading on OK click?

https://code.sololearn.com/WJO76qulDHa1/?ref=app

3rd Jul 2021, 1:09 PM
Shobhit :)
Shobhit :) - avatar
3 Respostas
+ 1
Cut line 97 and paste just below line 98 for expected result. 💡 img tag is an open tag . </img> is not required.
3rd Jul 2021, 1:35 PM
Divya Mohan
Divya Mohan - avatar
+ 1
When ok is clicked function sets "ruleBox.style.display = "none"; " which is the parent element for image as well . Doesn't matters if you set image display to block or none if parent element , ie.. ruleBox has display set to none
3rd Jul 2021, 1:30 PM
Abhay
Abhay - avatar
+ 1
Thanks Divya Mohan and Abhay
3rd Jul 2021, 1:39 PM
Shobhit :)
Shobhit :) - avatar