下拉列表顶部的选项 [英] Seleted item on top of the dropdown

查看:58
本文介绍了下拉列表顶部的选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在MVC项目中,我在layout.cshtml中放置了bootstrap下拉列表。如何在页面重定向的下拉列表之上获取所选项目。

解决方案

将所选值传递给临时数据并使用Jquery或C#设置相同的值

In MVC project, I put bootstrap dropdown list in layout.cshtml. How to get the selected item on top of the dropdown on page redirection also.

解决方案

Pass the selected value in temp data and set the same using Jquery or C#


这篇关于下拉列表顶部的选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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