在https://jsfiddle.net/hodtfkys/3/中,我怎样才能让它始终显示http://jsfiddle.net/t9vfxo5t/中显示的图像,而不仅仅是当用户下拉列表时?
仅在点击下拉列表时显示图片:
<div class='ui icon selection dropdown'>
<input name='DropDownListCategoryClone' type='hidden'> <i class='dropdown icon'></i>
<div class='default text'>
Male
</div>
<div class='menu'>
<div class='item' data-text='Male' data-value='male'>
<img class='ui image' src='http://icons.iconarchive.com/icons/icons8/ios7/512/Users-User-Male-icon.png' style='width:20px;'> Male
</div>
<div class='item' data-text='Female' data-value='female'>
<img class='ui image' src='http://icons.iconarchive.com/icons/icons8/ios7/512/Users-User-Female-icon.png' style='width:20px;'> Female
</div>
</div>
</div>
图标始终显示:
<div class="ui selection dropdown">
<input type="hidden" name="language">
<i class="dropdown icon"></i>
<div class="default text">Select language</div>
<div class="menu">
<div class="item" data-value="gb"><i class="gb flag"></i>English</div>
<div class="item" data-value="es"><i class="es flag"></i>Spanish</div>
</div>
</div>