<pre lang="css">populated dropdownList selected value is not pick the hover value. Please anybody send any solutions and immediately, thank you Default.aspx <li class="form-line" id="id_26"> &lt;label class="form-label-left" id="ddProducts1" for="input_26"> Product &lt;/label> <div id="cid_26" class="form-input"> <%--style="left:170px;top:100px;position:absolute" class="dlist" --%> &lt;label class="dlist"> <asp:DropDownList ID="ddProducts" CssClass="dropdown" runat="server" DataSourceID="sqlproducts" DataTextField="Product" DataValueField="Product"> </asp:DropDownList> &lt;/label> <asp:SqlDataSource ID="sqlproducts" runat="server" ConnectionString="<%$ ConnectionStrings:pmdb %>" SelectCommand="select 'Type product code' as 'Product' union all select stockCode as 'Product' from productCodes where stockcode like 'AV%' OR stockcode like 'SL%' "> </asp:SqlDataSource> </div> </li> style.css .dropdown{ padding:0px; /*-5px 0px 10px 0px;*/ margin: 0; -webkit-border-radius: 4px #EFEFEF; -moz-border-radius: 4px; border-radius: 4px; -webkit-box-shadow: 0 3px 0 #ccc, 0 -1px #fff inset; -moz-box-shadow: 0 3px 0 #ccc, 0 -1px #fff inset; box-shadow: 0 3px 0 #ccc, 0 -1px #fff inset; background-color: #fff; /*color: #888;*/ border: 1px solid #ccc; outline: none; display: inline-block; -webkit-appearance: none; -moz-appearance: none; appearance: none; cursor: pointer; height: 30px; } .dropdown select option{ padding:3px 5px; color:aqua; background-color:#ffd800; padding:-5px 0px 10px 0px; } .form-input .form-error-message, .form-input-wide .form-error-message{ bottom:-5px; font-size:11px; position:relative; z-index:900; right:auto; top:auto; color:#333; padding:3px; max-width:100%; padding-bottom:3px; font-size:12px; border:none; -moz-box-shadow:0px 2px 4px rgba(102, 102, 102, 0.5); -webkit-box-shadow:0px 2px 4px rgba(102, 102, 102, 0.5); -moz-border-radius:6px 6px; -webkit-border-radius:6px 6px; box-shadow:0px 2px 4px rgba(102, 102, 102, 0.5); border-radius:6px 6px; background:#FFCCCC; } .form-line { clear:both; padding:10px; margin:0px; /* Changed display to block to prevent a bug in Chrome */ display:block; width:97%; width:-moz-available; /* Removed this because it was changing the size of the migrated forms */ /* border:1px solid transparent ; */ position:relative; } .form-line-column{ float:left; clear:none; width:auto; white-space:nowrap; } /* Added css rule below to retain display:inline-block for shrunken fields */ .form-line.form-line-column { display:inline-block; } .form-line-column-clear{ clear:left; width:auto; } .dlist { position: relative; } .dlist:after { /*content: '>';*/ font: 14px "Consolas", monospace; color: #0081C7; -webkit-transform: rotate(90deg); -moz-transform: rotate(90deg); -ms-transform: rotate(90deg); transform: rotate(90deg); right: 8px; top: -3px; border-bottom: 1px solid #ddd; position: absolute; pointer-events: none; } .dlist:before { /*content: '';*/ right: 6px; top: -3px; width: 20px; height: 20px; background: #f8f8f8; position: absolute; pointer-events: none; display: block; } .form-input { display:inline-block; }</pre>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)