如何在MVC中提交submitajax和jequery? [英] How to do submitajax and jequery submit in MVC ?

查看:42
本文介绍了如何在MVC中提交submitajax和jequery?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨frnds,



ajax提交和Jquery提交表格



我是什么尝试过:



i对此有疑问....任何人都可以在mvc..please中共享Ajax提交和jquery sumbit的示例代码请分享正确的代码,请分享....

hi frnds,

ajax submit and Jquery Submit for form

What I have tried:

i am having doubt for this ....can any one share the Example code for Ajax submit and jquery sumbit in mvc..please share the correct code please ,please share ....

推荐答案

您好b $ b

在MVC中,您可以使用JQuery以非常简单的方式。



只需在客户端创建按钮的click事件并使用JQuery代码。

如下



Hi
In MVC you can submit your form using JQuery in very simple way.

Just create the click event for your button on client side and use the JQuery code.
as following

var myData = {
              param1:


#someElementId)。val(),
param2:
("#someElementId").val(), param2:


#anotherElementId)。val()
// 等等
}
("#anotherElementId").val() // so on }


这篇关于如何在MVC中提交submitajax和jequery?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆