diff --git a/index.html b/index.html index 6ff3cd8a..5c5337f4 100755 --- a/index.html +++ b/index.html @@ -342,7 +342,7 @@ version: 2.1
- You can set data-
attributes to <option> (or <optgroup>) and use them inside temptlating functions:
+ You can set data-
attributes to <option>
(or <optgroup>
) and use them inside temptlating functions:
<select> @@ -352,7 +352,8 @@ version: 2.1
function format(state) { - var originalOption = state.element + var originalOption = state.element; + return "<img class='flag' src='images/flags/" + state.id.toLowerCase() + ".png' alt='" + originalOption.data('foo') + "' />" + state.text; }@@ -789,8 +790,8 @@ version: 2.1
text
property that is returned.
- <option>
(or <optgroup>
) element is accessible inside the specified function by property item.element
:
format(item) { var originalOption = item.element; @@ -807,8 +808,8 @@ version: 2.1The default implementation expects the object to have a <returns> string Html that represents the result text
property that is returned. -
- Original <option> (or <optgroup>) element is accessible inside the specified function by property item.element +
+ Original<option>
(or<optgroup>
) element is accessible inside the specified function by propertyitem.element
:format(item) { var originalOption = item.element;