Firefox, , jQuery, , . , , , aspx -
<select id="cbType" runat="server" class="form-control"
title="<%$ Resources: Something %>">
<option value="0" selected="selected" label="<%$ Resources: Option1 %>" runat="server"></option>
<option value="1" label="<%$ Resources: Option2 %>" runat="server"></option>
<option value="2" label="<%$ Resources: Option3 %>" runat="server"></option>
<option value="3" label="<%$ Resources: Option4 %>" runat="server"></option>
<option value="4" label="<%$ Resources: Option5 %>" runat="server"></option>
</select>
Now just call the method below from jQuery (document) .ready ().
function fixFirefoxDropdownIssue() {
jQuery('select option').each(function() {
jQuery(this).text(jQuery(this).attr('label'));
});
}
Basically, it sets the inner text of the parameter to the value indicated by the label attribute. You can change the jQuery selector to make it more specific if required.
Thus, you do not need to change the data tags on the server side. Check it out in Firefox 40.0.3.
source
share