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();
alert(dt);
}
</script>
Thanks and Regards
Akiii