<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="<i>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 ...