One button firing another buttons click event

前端 未结 3 1362
面向向阳花
面向向阳花 2020-12-08 14:46

I\'d like two submit buttons on a form i have my team building, one above the fold, and one below. I\'m getting complaints from my tech team about adding it because it requi

3条回答
  •  无人及你
    2020-12-08 15:25

    I'm only familiar with ASP.net and C# buttons, but using C# you could wire two different buttons to the same click event handler. You could also do it client side by triggering the primary buttons click event with your secondary button. Here's a VERY simple example:

    HTML

    
    
    

提交回复
热议问题