开发者

Placing of jQuery initialization scripts with Ajax.BeginForm and partialView?

开发者 https://www.devze.com 2023-02-08 07:42 出处:网络
In a partial view with an MVC Ajax.BeginForm, where s开发者_高级运维hould I ideally place javascripts like for assigning datepickers?

In a partial view with an MVC Ajax.BeginForm, where s开发者_高级运维hould I ideally place javascripts like for assigning datepickers? I realize that when I return PartialView("theview") everything before the BeginForm is also returned. So should I move the inside the Ajax.BeginForm or what's it's best place?


Things like setting datepickers etc that are modifying the form contents I would normally place just before the end of the relevant form.

0

精彩评论

暂无评论...
验证码 换一张
取 消