javascript calling two functions in one onclick code example
Example 1: can we add two functions onclick event
//You can create a single function that calls both of those, and then use it in the event.
function myFunction(){
pay();
cls();
}
Example 2: call two methods on button click
<input id="btn" type="button" value="click" onclick="pay(); cls();"/>