forked from ehynds/jquery-ui-multiselect-widget
-
Notifications
You must be signed in to change notification settings - Fork 0
Customization
Michael edited this page Sep 28, 2016
·
2 revisions
Do you want to put HTML in your button label? You can! Just remember that this opens you up to XSS vulnerabilities.
By overriding the _setButtonValue method of the widget you can allow HTML in all the multiselect widgets on your page. For example:
$( "#foo" ).multiselect().data( "echMultiselect" )._setButtonValue = function( value ) {
this.buttonlabel.html( value );
};
The parameter value being passed in contains the text being updated.