Suppose we have a button reset and we have written the code on his event and we want to fire same click on other event or function.
Then we can trigger his event on other function.
- <button value="Reset" id="btnReset" title="Reset" type="reset">RESET</button>
- function resetAgain() {
- int count=0;
- $("#btnReset").trigger("click");
- }
Join the conversation! Your thoughts help the community grow.