在运行时在其中创建ul和il? [英] create ul and il inside it at runtime?

查看:84
本文介绍了在运行时在其中创建ul和il?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的,我会改善我的问题
1-我添加一门课程,然后在学生网格视图中搜索并选择多个学生
2-我选择学生后说他们是50名学生
3-用户输入每组的学生人数,说= 10表示我将有5组,每组包含10名学生
4-当用户单击按钮时,无论这些容器是ul还是列表框,都会出现五个容器
5-用户可以将一个学生从一个组移动到另一个组,因为每个组都在特定日期开始课程

注意:学生人数由用户确定,每组学生人数也由用户确定


我没有决定ul的容器,因为我会编写文本框或文本框,但是如何将学生从一个列表框转移到另一个列表框

OK i will improve my question
1- i add a course then search in students grid view and select multiple students
2- after i choose students say they are 50 student
3- user enter the number of students in each group say =10 mean that i will have 5 groups each group contain 10 student
4- when user click button a five container appear whatever these container are ul or listboxes
5- user can move one student from one group to another group cause every group start course at specific date

notice : number of students user determine it and number of students in each group also user determine


container i didnot decide ul as i will write or text boxes but how to transfer student from one listbox to another

<ul group1>
                       <li>student1</li>
                       <li>student2</li>
                       <li>student3</li>
                       <li>student4</li>
                       <li>student5</li>
                   </ul>
<ul group1>
                         <li>student1</li>
                       <li>student2</li>
                       <li>student3</li>
                       <li>student4</li>
                       <li>student5</li>
                   </ul>

推荐答案

JQuery Sortable
http://jqueryui.com/demos/sortable/ [
JQuery Sortable
http://jqueryui.com/demos/sortable/[^]


这取决于您要在何处创建元素.如果您有一个要添加小组和学生的数据源,则将其绑定到具有适当模板的Repeater.或者,您可以使用JQuery在JavaScript中创建元素.如果您编辑问题以澄清一个更好的答案.
It depends on where you want to create the elements. If you have a datasource that the groups and students are being added to then bind it to a Repeater with the appropriate template. Or you could create the elements in JavaScript by using JQuery. If you edit your question to clarify a better answer could be given.


这篇关于在运行时在其中创建ul和il?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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