Hiding images while clicking on a button using jQuery
Live Preview:
Did you see that some websites are hiding and showing images when we click on some links or buttons. Do you know how it works. Here is the solution for your confusion. Here I created 2 buttons naming hide me and show me to hide the picture and to show the picture when clicked on that button.The working of this program is completely built on jQuery which is simple and easy to learn.
Here I used two jQuery function show() and hide() to hide and view the images. You can use as many images as you want. The $(document).ready(function) is used here to load the function only when the entire document is loaded. The jQuery will work only if we have the Google or Microsoft cdn which is placed on the source code of the script tag.
Video Preview:
See how do the hide and show function works in this video. The video is uploaded in the youtube channel 'How To'. Subscribe the channel to get tuned.The code of the given program is given below.
To start a new node project, type C:\Users\jinoy\OneDrive\Desktop\MERN>npm init -y The basic syntax of calling a function in node.js with express is : const functionname = () => { console . log ( "hello world" ); } functionname (); To call a function after every 5 seconds : setInterval (() => { console . log ( "hello" ); }, 5000 ); To call a function only once after 4 second : setTimeout (() => { console . log ( "test" ); }, 4000 ); To run a script.js file on terminal, type : C:\Users\jinoy\OneDrive\Desktop\MERN>node script.js OR C:\Users\jinoy\OneDrive\Desktop\MERN>node script To stop a function that is executing on every interval( time to call function again) : const interval = setInterval (() => { console . log ( "hello" ); }, 1000 ); setTimeout (() => { clearInterva...
In the ever-evolving landscape of software development, ensuring supply chain security and embracing cloud-native practices are paramount. One solution that stands out in addressing these concerns is Chainguard, a platform providing secure images for development environments. Recently, I had the opportunity to explore Chainguard's capabilities firsthand through a sponsored video collaboration. The video delved into the seamless integration of Chainguard images into various development workflows, highlighting the significant advantages they offer in terms of security and efficiency. From hosting images on platforms like ECS, Apprunner, and Google Cloud Run to leveraging DockerHub for streamlined deployment, Chainguard simplifies the process while enhancing security measures. What sets Chainguard apart is its proactive approach to security. Images are rebuilt daily and frequently patched, minimizing vulnerabilities and mitigating risks associated with outdated dependencies. This ...
Have you ever thinked about designing a file that can contain different styles which can be ewhile writing every code. Here is the answer. A Bootstrap is the most popular CSS Framework for developing responsive and mobile-first websites. Bootstrap is a free and open source front enddevelopment framework for the creation of websites and web apps. The Bootstrap framework is built on HTML, CSS, and JavaScript (JS) to facilitate the development of responsive, mobile-first sites and apps. The bootstrap file contain many CSS style , JavaScript and HTML which can be called any number of times during the execution of the program. The bootstrap file is a W3C accepted standard file wich can be used to develop a stylish website easly. Here you can download the bootstrap file directly from my website. It is the now available latest version of the bootstrap file. Version : 4.3.1 Click on the link below to download the bootstrap file. Bootstrap version 4.3.1 If you need ...
Good
ReplyDelete