I want to show the selected checkbox's text inside the button, right now when i select something from the checkbox it only shows the text "Multiple Selection ▼"
<div class="dropdown show">
<button style="border-radius: 10px; border-width: 2px; border-color: #fcb141" type="button" class="form-control" data-toggle="dropdown">Multiple Selection ▼</button>
<ul class="dropdown-menu checkbox-menu allow-focus">
<li><a style="color: black;" href="#" class="large" data-value="Chinese" tabIndex="-1">
<input name="languages[]" value="Chinese" type="checkbox"/> Chinese</a>
</li>
<li><a style="color: black;" href="#" class="large" data-value="English" tabIndex="-1">
<input name="languages[]" value="English" type="checkbox"/> English</a>
</li>
<li><a style="color: black;" href="#" class="large" data-value="French" tabIndex="-1">
<input name="languages[]" value="French" type="checkbox"/> French</a>
</li>
<li><a style="color: black;" href="#" class="large" data-value="German" tabIndex="-1">
<input name="languages[]" value="German" type="checkbox"/> German</a>
</li>
<li><a style="color: black;" href="#" class="large" data-value="Italian" tabIndex="-1">
<input name="languages[]" value="Italian" type="checkbox"/> Italian</a>
</li>
<li><a style="color: black;" href="#" class="large" data-value="Malay" tabIndex="-1">
<input name="languages[]" value="Malay" type="checkbox"/> Malay</a>
</li>
<li><a style="color: black;" href="#" class="large" data-value="Spanish" tabIndex="-1">
<input name="languages[]" value="Spanish" type="checkbox"/> Spanish</a>
</li>
</ul>
</div>
Aucun commentaire:
Enregistrer un commentaire