html-select

remove default select box arrow in firefox

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-05 21:40:24
I have to remove the default select box arrow in firefox I used the below code -webkit-appearance: none; -moz-appearance:none; background: rgba(0,0,0,0); its working good in chrome. but its not working in firefox. Update: this was fixed in Firefox v35. See the full gist for details. Just figured out how to remove the select arrow from Firefox . The trick is to use a mix of -prefix-appearance , text-indent and text-overflow . It is pure CSS and requires no extra markup. select { -moz-appearance: none; text-indent: 0.01px; text-overflow: ''; } Tested on Windows 8, Ubuntu and Mac, latest versions

Populating an ASP.Net DropDownList using VB.Net coding in code-behind file

天涯浪子 提交于 2019-12-05 16:31:47
We have a DropDownList in the markup of an ASP.Net / VB.Net web form. We are wanting to populate the DropDownList with data from a DataSet created from the DataSet designer but the coding we are using in the code-behind file does not find the DropDownList ID using FindControl. Can you check my coding and let me know what I still need to do to get the DropDownList populated? Markup of the DropDownList: <% '-- DetailsView (Grid) for details of the GridView -- %> <% '---------------------------------------------------- %> <asp:DetailsView ID="DetailsView" runat="server" AutoGenerateRows="False"

jQuery toggle div from select option

眉间皱痕 提交于 2019-12-05 13:09:53
I'm in need to toggle divs from a dropdown select option box. I'd like it similar to asmselect for jquery but instead of listing the option tag I'd like it to display a hidden div. Is there anything like this out there? Or anyone know how to set it up? Thanks, Jeff. UPDATED Basically what I want is the look and interaction of the asmselect link above though toggling divs instead of generating a list. Example code below: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head>

Detect programmatical changes on a html select box

时光毁灭记忆、已成空白 提交于 2019-12-05 10:06:18
Is there a way to make a HTML select element call a function each time its selection has been changed programmatically? Both IE and FF won't fire 'onchange' when the current selection in a select box is modified with javascript. Beside, the js function wich changes the selection is part of framework so I can't change it to trigger an onchange() at then end for example. Here's an example: <body> <p> <select id="sel1" onchange="myfunction();"><option value="v1">n1</option></select> <input type="button" onclick="test();" value="Add an option and select it." /> </p> <script type="text/javascript">

Can you have multiple font colors in select field?

陌路散爱 提交于 2019-12-05 09:19:38
Is it possible to have an HTML select field where the OPTION text is of different colors? <select> <option>Black_text (yellow_text)</option> </select> I tried using an CSS SPAN element to color the text but that doesn't seem to work. Any ideas? UPDATE: Note, I'm trying to have multiple font colors on the same OPTION row. I've seen quite a few tutorials on how to style the entire OPTION row but I'm trying to style elements within the same option row. Try to style the option elements itself: <option style="…">Label</option> But I doubt that browsers support much styling of these elements. Edit I

Creating drop menu navigation with <select>

女生的网名这么多〃 提交于 2019-12-05 08:08:25
I've managed to make myself drop menu navigation with html <select> . I've encountered one problem, though. My external links aren't working. Namely Youtube. Here is the code: <select ONCHANGE="location = this.options[this.selectedIndex].value;"> <option value="" selected="selected">Navigation</option> <option value="index.html">Home</option> <option value="detroitvideoproduction.html">Video Production</option> <option value="locationsounddetroit.html">Location Sound</option> <option value="videoeditingdetroit.html">Video Editing</option> <option value="custommotiongraphicsdetroit.html">Custom

Multi-Selection horizontal

孤街醉人 提交于 2019-12-05 08:00:45
I'm trying to build a multi-selection like that: The height and width of each option is 100. The options are listed horizontally. The options have to make a line break if they are out of the browsers width . It looks like that at the moment: JSFiddle Demo * { box-sizing: border-box; } #data { overflow:hidden; padding:0; width:100vw; } select { padding:0; padding-left:1px; border:none; background-color:#eee; width:100vw; } option { height:100px; width:100px; border:1px solid #000; background-color:white; margin-left:-1px; display:inline-block; } <form> <div id="data"> <select multiple size="1">

HTML looping option values in drop down list

六月ゝ 毕业季﹏ 提交于 2019-12-05 07:27:14
问题 I have been trying to do a form where a question about one's current age is included, and I have decided the easiest way to answer this question is by filling in a drop down list. So my first value in the drop down list shall be 1900 and then it shall increment by one till it reaches 2014. How do I do that? 回答1: I wouldn't set a fixed final year, why recode again next year? Note that it is more effecient to update the DOM once than updaing the DOM for each year added to the list. HTML <select

HTML Select options width is cropped in IE. Any solutions?

﹥>﹥吖頭↗ 提交于 2019-12-05 05:13:58
In Mozilla and non-IE browsers, if the option of select list is of a greater length than the select's width, it will show up. But in IE, it will crop the option up to the select's width. Is there any way to make IE's select behaviour to be like that of non-IE browsers? This seems to work well in forcing IE to reevaluate the select width. Works in IE7 and IE8. if (jQuery.browser.msie) { jQuery("#" + selectID).css("width", "100%").css('width', 'auto'); } css: .set_width { width:120px; } html: <select class="set_width"><option>one</option><option>two</option></select> I like 26design's solution

html select list - get text value by passing in a variable?

梦想的初衷 提交于 2019-12-05 02:05:06
问题 I have a select list that displays a list languages. <select name="language_code" id="id_language_code"> <option value="ar">Arabic - العربية</option> <option value="bg">Bulgarian - Български</option> <option value="zh-CN">Chinese (Simplified) - 中文 (简体)‎</option> <option value="en" selected="selected">English (US)</option> <option value="fr-CA">French (Canada) - français (Canada)‎</option> </select> I am able to get the text value of the selected value using the following code [returns English