help binding button jQuery

help binding button jQuery

hello,  I am a novice coder,  I can add code to a file if I know where and what to add :)  I have a hidden form on one of my pages and I need to make the CTA button act like the submit button on the hidden form.  here is what the developer told me to do but it is over my head

You can use jQuery to submit the form when your button is clicked, either add the following to your button onclick attribute or wrap it in a click handler ( http://api.jquery.com/click/  ) bound to your button
jQuery('‪#‎gform_13‬').submit();

currently my CTA button is an image that redirects to a checkout page so somehow I need to add the code above to that image.

can someone help guide me on how to do this?  

thank you