jQuery Click Button Activates Another Button

Franklin asked 2 years ago

I would like to know in jQuery if I click a button how can I make it activate another button on the same page?

jQuery Click Button Activates Another Button was last modified: June 16th, 2017 by Franklin

Tip: Click on images to make them larger. If you find anything wrong on this page or need further assistance please comment below or contact me. 🙂

Please like, share and subscribe.

Advanced Programming Made Easy

I hope you enjoyed the article. If I was able to help you please consider a tip for the content.

One Time Tip

more tips

Reoccuring Tips

Tips

Cool People Share:
1 Answers
Best Answer
Maximus Mccullough Staff answered 2 years ago

Sure just set up your buttons like this. 

<button id="foo">Button One</button>
<button id="boo">Button Two</button>
<script type="text/javascript">$(function () {   
$("#foo").on("click", function () {           
$("#boo").click()   
});});</script>
Answer for jQuery Click Button Activates Another Button was last modified: June 16th, 2017 by Maximus Mccullough

Tip: Click on images to make them larger. If you find anything wrong on this page or need further assistance please comment below or contact me. 🙂

Please like, share and subscribe.

Advanced Programming Made Easy

I hope you enjoyed the article. If I was able to help you please consider a tip for the content.

One Time Tip

more tips

Reoccuring Tips

Tips

Cool People Share: