New to Kendo UI for jQuery? Start a free 30-day trial
Label
Updated over 6 months ago
You can use the label option to specify the content of the label. To set the content, you can use encoded text.
Set the Label Text
To customize the text of the label, use the label option.
<input id="radiobutton" />
<script>
$("#radiobutton").kendoRadioButton({
label: "RadioButton Label"
});
</script>
Encoded Label
The label of the RadioButton can be either an encoded text or HTML string. By default, the label is encoded.
The example below demonstrates both scenarios.
<input id="radiobutton" name="radioBtn" />
<input id="radiobutton2" name="radioBtn" />
<script>
$("#radiobutton").kendoRadioButton({
label: "<strong>Label one</strong>"
});
$("#radiobutton2").kendoRadioButton({
label: "<strong>Label two</strong>",
encoded: false
});
</script>