<button id="take-photo"> Take Image</button>
<button type="submit" value="Submit" >Submit </button>
How to run two task on single button click 1. Calling function with ID Next 2.Submit the form with the hidden input value
Below is my effort however it runs only 1 function
<button id="take-photo" type="submit" value="Submit" >Click me To fire some functions</button>