Calling multiple JavaScript functions on a button click

前端 未结 11 1650
灰色年华
灰色年华 2020-12-23 22:37

How to call multiple functions on button click event?

Here is my button,



        
11条回答
  •  别那么骄傲
    2020-12-23 23:29

    At times it gives syntax error that "return is not a function" so in that case just remove return and it will work fine :) as shown below

    OnClientClick="var b = validateView(); if(b) var b = ShowDiv1(); b;"
    

提交回复
热议问题