Joget自动补全(Multi Selectbox)不支持placeholder,并且空选项的标签也无法显示。可通过以下脚本实现提示效果
脚本
<script type="text/javascript"> $(function(){ var itRepresentative_chosen = $("#itRepresentative_chosen"); var itRepresentativeText_chosen = itRepresentative_chosen.children('a').children('span:first'); itRepresentativeText_chosen.text('e.g. Who in IS&T have you previously discussed with'); var itRepresentative = $("#itRepresentative"); itRepresentative.change(function(){ var value = $(this).val(); if(value == ""){ itRepresentativeText_chosen.text('e.g. Who in IS&T have you previously discussed with'); } }) }) </script>
效果