Hi Tanu,
- Add semi-colons ; to the end of the function calls in order for them(multiple function) to work.
<input id=”btn” type=”button” value=”click” onclick=”fun1(); fun2();”/>
- You can create a single function that calls both of those, and then use it in the event.
function myFunction(){
fun1();
fun2();
}
<input id=”btn” type=”button” value=”click” onclick=”myFunction();”/>