Posted on: 5/18/2014 9:00:54 AM | Views : 381

<asp:DropDownList ID="CbCampaign" runat="server" AutoPostBack="True" class="DropDownCssStyle"> <asp:ListItem data-icon="" data-html-text=""></asp:ListItem> <asp:ListItem data-icon="" data-html-text="&lt;i&gt;Test">Test</asp:ListItem> </asp:DropDownList> JS: $(document).ready(function(){ // The select element to be replaced: var select = $('select.DropDownCssStyle'); var selectBoxContainer = $('<div>',{ width : select.outerWidth(), className : 'tzSelect', html : '<div class="selectBox"></div>' }); var dropDown = $('<ul>',{className:'dropDown'}); var selectBox = selectBoxContainer.find('.selectBox'); // Looping though the options of the original select element ...

Go to the complete details ...