fix demo for loading data via function.
This commit is contained in:
parent
c67485c5c8
commit
38c09fe7cf
@ -187,7 +187,7 @@ $("#e10_3").select2({
|
|||||||
formatResult: format
|
formatResult: format
|
||||||
});
|
});
|
||||||
$("#e10_4").select2({
|
$("#e10_4").select2({
|
||||||
data:function() { return { results: data }; },
|
data:function() { return { text:'tag', results: data }; },
|
||||||
formatSelection: format,
|
formatSelection: format,
|
||||||
formatResult: format
|
formatResult: format
|
||||||
});
|
});
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 92ceb93e9373560f522c1344627a9ddfbc634af6
|
Subproject commit 5762b85dd2a7cda5867355f28f07ac0646001070
|
@ -169,5 +169,13 @@
|
|||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
<input type="text" size="width:300px" id="tags"/>
|
||||||
|
<script>
|
||||||
|
$(function() {
|
||||||
|
$("#tags").select2({tags:["one","two","three"]})
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
Loading…
Reference in New Issue
Block a user