Closed HyramTang closed 7 years ago
Not sure what are you asking for. In order to set a default icon you would proceed as you would with any other regular input field:
<select id="myselect" name="myselect" class="myselect">
<option value="">No icon</option>
<option>...</option>
<option selected>icon-search</option>
<option>...</option>
</select>
or
<input type="text" name="mytext" id="mytext" value="icon-search" />
or if you need to do it on the fly:
var $picker = $('#e1_element').fontIconPicker();
$picker.val('icon-search').refreshPicker();
Hope that helps.
Cheers, Alex
I used font-awesome icon can't run,can you support font-awesome icon?:smile:
Fontello uses Font Awesome v4.7.0.
After loading the page, how do I select an icon by default? the default icon come from database.