控制下拉列表 [英] Control the dropdown

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

问题描述

当我选择下拉列表后,下拉列表应该变为禁用状态。我不应该选择第二次。我使用的是javascript和dropdown是html的。当我禁用下拉列表(使用javascript)它变成了diable但在vb.net中保存没有值在dropdown.please帮助我。

when i select the dropdown value after that the dropdown should become disable. I should not select second time. I am using javascript and dropdown is the html one. when i disable the dropdown(using javascript) it becomes diable but saving in vb.net no value is coming in the dropdown.please help me.

推荐答案

使下拉列表禁用使用Javascript。有关参考,请参阅以下链接



使用Javascript禁用DropDownList [ ^ ]



现在,我假设你有一些按钮,该按钮的onclick事件取下拉值,将它存储在某处,使其禁用,即你必须调用javascript来自您的代码文件的功能。为此,请参阅以下链接



如何从代码隐藏中调用javascript函数 [ ^ ]



问候......:笑:
Make dropdownlist disable using Javascript.For reference,refer to below link

Disable DropDownList using Javascript[^]

Now,i assume you have some button,onclick event of that button take value of dropdown,store it somewhere,make it disable,that is you have to call javascript function from your code file.For this,refer to below link

How to call javascript function from code-behind[^]

Regards.. :laugh:


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

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