How to call two javascript function on a single button click

Posted by Akiii under JavaScript category on | Points: 40 | Views : 10544
Hi all,
Here, I will show how to call two javascript function in a single button click.
First, we have a button.

<asp:Button ID="btnSubmit" runat="server" Text="Submit" onclientclick="showlabel();showdate();" />

In "onclientclick" we are calling two javascript functions. Heres, the script:-

<script type="text/javascript">
function showlabel()
alert("this is show label function");

function showdate() {
var dt = new Date();

Thanks and Regards

Comments or Responses

Login to post response