Web Simplified….
10 May
Hi All,
Today I will talk about how can we call two javascript function on one button click.
I have seen many case while doing website designing that many times we get situation where we want to check/validate couple of things on one button click, contrary to general notion people have it is very much possible and very easy. It is same way we call single function , except a ‘;’ between two function we want to call on button click.
Following sample code will give you an example: here two function are called on ‘Submit’ button clik.
input type=”button” value=”Submit” onClick=”function1(parameter1);function1(parameter1)”
////end here
this is it! simple and short:)
-Harish Sharma
Leave a reply