我想要使​​用HTML的可编辑下拉列表? [英] I want editable drop down list using HTML?

查看:93
本文介绍了我想要使​​用HTML的可编辑下拉列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我google了这么多我没有得到解决方案,因为在我的网站我加载了很多值在dropdownlist滚动条大到所以我需要editabe下拉列表主要使用html主要或asp.net而不使用javascript或jquery或css

I googled it so many i didnt get the solution because in my site i loaded so many values in dropdownlist scroll bar coming large so i need the editabe drop downlist using html only mainly or asp.net without using javascript or jquery or css

推荐答案

HTML中没有可编辑的下拉列表(在HTML中选择)。但是,为了清楚起见,ASP.NET仅存在于服务器上,一旦将Web页面发送到客户端,代码就会转换为HTML标记浏览器操作并使用HTML而不是ASP.NET。



创建动态网站需要JavaScript,只有JavaScript才能启用这些功能。如果你仍然想要创建一个可编辑的下拉列表,我可以给出一个线索,你应该在下拉列表上放置一个输入标签,使其可编辑,并且一旦用户提交或按下回车键。从下拉列表中删除该输入元素并显示一个简单的下拉框。
There is no editable dropdown (select in HTML) in HTML. However, for clarity the ASP.NET exists on the server only, once the web page is to be sent to the client the code is converted to HTML markup browsers manipulate and work with HTML not ASP.NET.

JavaScript would be required to create dynamic website, and only and only JavaScript can enable such things. If you still want to create a dropdown that is editable, I can give a clue, you should place an input tag over the dropdown to make it "editable" and as soon as the user submits or presses enter. Remove that input element from (above the) the dropdown and show a simple dropdown box.


您无法在直接HTML中执行可编辑的下拉列表。并且你不想做服务器端...



你需要javascript或jQuery(IIRC后面包含一个吗?)
You can't do an editable drop down list in "straight" HTML. And you don't want to do it server side...

You need javascript or jQuery (IIRC the later includes one?)


检查



自定义ASP.NET可编辑DropDownList [ ^ ]



http://aspforums.net/Threads/836186/Implement-Editable-DropDownList-in-ASPNet/ [ ^ ]


这篇关于我想要使​​用HTML的可编辑下拉列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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