如何在ajax.beginform中动态更改updatetargetid [英] How to change updatetargetid dynamically in ajax.beginform

查看:82
本文介绍了如何在ajax.beginform中动态更改updatetargetid的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在Ajax.BeginForm中动态更改UpdateTargetId。



我尝试过:



仍然,考虑改变UpdateTargetId,否则我必须根据要求更改视图。



我试过下面的代码摘要。

 $(' #submit-Insert-表单')。attr('  data-ajax-update'  NewUpdateTargetName); 

解决方案

' #submit-Insert-Form')。attr(' data-ajax-update' NewUpdateTargetName);


Is it possible to change UpdateTargetId dynamically in Ajax.BeginForm .

What I have tried:

Still, thinking about to change in UpdateTargetId otherwise I have to change the view with respect to requirement.

I have tried below code snippet.

$('#submit-Insert-Form').attr ('data-ajax-update', "NewUpdateTargetName");

解决方案

('#submit-Insert-Form').attr ('data-ajax-update', "NewUpdateTargetName");


这篇关于如何在ajax.beginform中动态更改updatetargetid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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