How to post the viewmodel to action method using JQUERY AJAX in MVC

后端 未结 3 454
伪装坚强ぢ
伪装坚强ぢ 2021-01-17 04:39

I want to achieve create (INSERT) screen using $.POST or $.AJAX.

Note: code is working fine without AJAX call..it is already there.. now i need to do ajax call and s

3条回答
  •  深忆病人
    2021-01-17 05:30

    If the id of your form is frm, then it should be referenced as follows

    data:   $("#frm").serialize(),
    

提交回复
热议问题