什么是下拉列表的JavaScript ... [英] what is the javascript for dropdownlist..

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

问题描述

我将drodownlist值插入gridview ...但是一旦插入它,我就不想再将它再次输入那个值......对于那个验证将是什么javascript。

解决方案

https://www.dougv.com/2009/02/07/revisited-adding-non-selectable-listitem-controls-to-an-aspnet-databound-list-control/

您必须为插入功能编写自己的逻辑。您必须跟踪目前使用的所有值,并根据它来避免从下拉列表中选择该项目。或者,一旦选择了特定的下拉值,您就可以从列表中删除它,以便它不再可供用户选择。


I am inserting drodownlist Value into gridview...but once its inserted,i dont want to inser it again that value...for that validation what will be the javascript.

解决方案

https://www.dougv.com/2009/02/07/revisited-adding-non-selectable-listitem-controls-to-an-aspnet-databound-list-control/


You have to write your own logic for insertion feature. You have to keep track of all the values so far used and based on it avoid the selection of that item from dropdown. Alternatively, once a particular dropdown value is selected, you can remove the same from the list so that it is no more available for user selection.


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

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