show and hide the UI elements using the id attribute of the html element.
hide() - Jquery method to hide the field
show() - Jquery method to show the field
To use the inbuilt function in JS, following library must be included in the HTML file
Here is the sample html code to show hide the image