开发者

how to go other page on dropdown selection using asp.net mvc

开发者 https://www.devze.com 2022-12-22 12:23 出处:网络
I have a dropdownlist box on my page.. with A B C D E F each pages have different images. Once If I select A I need display one Image like B I need to display other image/table on the page.

I have a dropdownlist box on my page.. with A B C D E F each pages have different 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?


I'd use jQuery, quick example to get you started:

$('#dropDownList').change(
    function() { 
        $('#contentDiv').html("<img src='yourjpg.jpg' alt='alt text' />"); 
    });

You will want to check some values and pick the correct jpg based on the value selected, but that should get you started.

0

精彩评论

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