Placing of jQuery initialization scripts with Ajax.BeginForm and partialView?
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.
精彩评论