How can I pass a Textboxes value to my Ajax.ActionLink?

后端 未结 4 764
感情败类
感情败类 2021-01-18 12:21

In my ASP.NET MVC application I want a user to add a value into a textbox and then press my Ajax.ActionLink. I want to do something like this:

Ajax.ActionLink(\"Go\

4条回答
  •  无人共我
    2021-01-18 12:28

    this is how you retrieve the value from your textbox in JQuery

    var input =  $('input[name=txt_MyTextBox]').val()
    

提交回复
热议问题