javascript onclick call 2 functions code example
Example: call two methods on button click
<input id="btn" type="button" value="click" onclick="pay(); cls();"/>
<input id="btn" type="button" value="click" onclick="pay(); cls();"/>