在mvc中映射两个不同的项目列表 [英] Map two different items list in mvc

查看:54
本文介绍了在mvc中映射两个不同的项目列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我的要求有点复杂,我不知道如何在谷歌搜索它。

这里我我会尽量描述,



我想要的是

我在这个链接 [ ^ ]

第一行包含操作系统列表,第二行包含国家/地区。

此时用户选择操作系统和国家/地区被选中并突出显示。

类似

我想显示2个项目的列表作为列,并允许用户从column1中选择一个项目,在column2中选择另一个项目应该映射。

当用户从列表中选择两个项目时,所选项目应该从视图中消失。



任何提示和技巧将非常感谢。

提前致谢。

Hi All,

My requirement is little bit complicated, i dont know how to search it in google even.
here I''ll try to describe as much as i can ,

What I want is
I uploaded a sample image in this link[^]
Where first row contains the list of OS and second row contains country.
Here when user selects OS and Country it is selected and highlighted.
Similarly
I want to display list of 2 items as column and allow user to select one item from column1 and another one in column2 and it should map.
When user selects two items from the list, the selected items should vanished from the view.

Any tips and tricks will be greatly appreciated.
Thanks in advance.

推荐答案

使用Javascript我成功实现了这个。



我放置我的代码,以便你可以改变,如果你想要

Using Javascript I achieved this successfully.

I place my code, so that you may alter if u want


(function(){
/// < reference path =../../ Scripts / jquery-1.8.1-vsdoc.js/ >

var mappedField =
(function () { /// <reference path="../../Scripts/jquery-1.8.1-vsdoc.js"/> var mappedField =


#__ MappedFields);


这篇关于在mvc中映射两个不同的项目列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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