I am using /. I am using multi-select dropdown. On selecting some items, it shows its default title "x items selected". I want to change its text to "x some_other_word selected.". Anyone tell me, if this plugin provides any option to change the title text.
I am using https://silviomoreto.github.io/bootstrap-select/. I am using multi-select dropdown. On selecting some items, it shows its default title "x items selected". I want to change its text to "x some_other_word selected.". Anyone tell me, if this plugin provides any option to change the title text.
Share Improve this question asked Nov 2, 2015 at 10:28 sanjeev1779sanjeev1779 781 silver badge8 bronze badges3 Answers
Reset to default 5you can use "data-count-selected-text"
<select class="selectpicker" multiple data-selected-text-format="count>3"
data-count-selected-text= "{0} some_other_word selected">
<option>Mustard</option>
<option>Ketchup</option>
<option>Relish</option>
<option>Onions</option>
</select>
Instead of using the "count format" use
<select class="selectpicker" multiple data-selected-text-format="count>3">
<option>Mustard</option>
<option>Ketchup</option>
<option>Relish</option>
<option>Onions</option> </select>
or you can directly edit the plugin and add extended option to define your default "selected" text format.
Add title value to "x some_other_word selected".
<select class="selectpicker" title="x some_other_word selected.">
<option>Mustard</option>
<option>Ketchup</option>
<option>Relish</option>
</select>
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742375974a4432197.html
评论列表(0条)