select-option

Where does the extra empty <option> come from?

<?php $salaries = array(1000,1500,2000,2500,3000,4000,5000,6000,7000,9000,12000,18000,30000); $str = ''; foreach($salaries as $salary) { $str .= "<option value=\"$salary\">$salary+</option>"; } function populateSalary() { $salaries = array(1000,1500,2000,2500,3000,4000,5000,6000,7000,9000,12000,18000,30000); $str = ''; f...

[HTML] Select lists are dropping-UP in IE6/6

Hi, How can I fix the following problem with IE6/7(IE Tester) with drop-down list(with fixed width), as it is dropping UP instead of DOWN on roll out? Any help appreciated. Thanks in advance. ...

jQuery toggle div from select option

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 asmse...

jQuery - disable selected options

Need to disable already selected options in select box using jQuery. I'd like it to grey out like asmselect. Test my example here. //JS $("#theSelect").change(function(){ var value = $("#theSelect option:selected").val(); var theDiv = $(".is" + value); theDiv.slideDown().removeClass("hidden"); }); $("div a.remove").c...

ASP.NET MVC DropDownList: Getting the Selected Text (rather than the Value)

Once upon a time, I had a DropDownList with Options built using this code: <%= Html.DropDownList("SomeName", someSelectList)%> which produced HTML like this: <select id="SomeName" name="SomeName"> <option>ABC</option> <option>DEF</option> <option>GHI</option> <option>JKL</option> </select> Form Submission would always return one of...