Click here to Skip to main content
15,887,821 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Why we use toggle function in Ajax and also what are the features for developing a software application.?
Posted

1 solution

Lets say there is a button and a bulb image in your webpage.

The requirement may be If you click on button once, the image should change(a img with a bulb glowing) and if you click on the button again the Bulb img should change back to its orginal state (i.e a turned off bulb).

In this situation you can use this toggle functionality. There is no need of another button to make bulb off(related functionality)..

Hope it helps :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900