如何使用asp.net mvc的去选择下拉菜单其他网页 [英] how to go other page on dropdown selection using asp.net mvc
本文介绍了如何使用asp.net mvc的去选择下拉菜单其他网页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
朋友你好我haev一个DropDownList框在我的网页。与A B C D E F
每个网页有difernt图片
一旦如果我选择,我需要显示一个图像像B I需要在页面上显示其他的图像/表..
任何一个可以电话我如何做到这一点?
感谢您所有的时间
hello friends I haev a dropdownlist box on my page.. with A B C D E F each pages have difernt images once If I select A I need display one Image like B I need to display other image/table on the page.. can any one tel me how to do this? thanks for all your time
推荐答案
我会使用jQuery,简单的例子,让你开始:
I'd use jQuery, quick example to get you started:
$('#dropDownList').change(
function() {
$('#contentDiv').html("<img src='yourjpg.jpg' alt='alt text' />");
});
您将要根据所选择的值来检查一些值,选择正确的JPG,但应该让你开始。
You will want to check some values and pick the correct jpg based on the value selected, but that should get you started.
这篇关于如何使用asp.net mvc的去选择下拉菜单其他网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文