Render partial form in jQuery dialog

若如初见. 提交于 2019-12-03 21:50:50

I'm not sure if I got your problem right, why can't you just load the partial view via Ajax into your document? In this cause you would just have something like this:

<select onchange="$('#editDinnerForm').load(<url>,{dinner:this.value});">
    <option>Dinner1</option>
    <option>Dinner2</option>
</select>

You could also easily cache these requests so that you don't have to render these partial forms again and again....

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!