Cancel button in form

后端 未结 9 2024
借酒劲吻你
借酒劲吻你 2021-02-05 14:28

I have a cancel button in a form:

@using (Html.BeginForm(\"ConfirmBid\",\"Auction\"))
        {
          some stuff ...

                    

        
9条回答
  •  时光说笑
    2021-02-05 14:57

    Or a styled submit button:

     
    

    Then Javascript for cancel button:

    
    // Note: This avoids any of the validation that may happen in the model that 
    // normally gets triggered with a submit
    

提交回复
热议问题