How do you submit a dropdownlist in asp.net mvc from an Ajax form

前端 未结 7 1799
自闭症患者
自闭症患者 2020-12-25 13:12

How do you submit from a dropdownlist \"onchange\" event from inside of an ajax form?

According to the following question: How do you submit a dropdownlist in asp.ne

7条回答
  •  半阙折子戏
    2020-12-25 13:59

    I had a button like this in my AJAX.BeginForm

      
    

    And onsubmit or the solution from Francisco didn't work (I still don't know why)

    So I created an alternative:

      new { onchange = "document.getElementById('submitButton').click()" }
    

提交回复
热议问题