DHTMLX Docs & Samples Explorer

Fieldset

Source
<link rel="stylesheet" type="text/css" href="../../codebase/skins/dhtmlxform_dhx_skyblue.css">
    <script src="../../codebase/dhtmlxcommon.js"></script>
    <script src="../../codebase/dhtmlxform.js"></script>
    <script>
var myForm,
formData;
function doOnLoad() {
    formData = [{
        type: "settings",
        position: "label-right"
    }, {
        type: "fieldset",
        label: "Ask a simple question",
        inputWidth: 220,
        list: [{
            type: "label",
            label: "Please select your favorite band:"
        }, {
            type: "radio",
            name: "band",
            value: 1,
            label: "Cradle Of Filth"
        }, {
            type: "radio",
            name: "band",
            value: 2,
            label: "Children Of Bodom"
        }, {
            type: "radio",
            name: "band",
            value: 3,
            label: "Motorhead"
        }, {
            type: "radio",
            name: "band",
            value: 4,
            label: "Theatres Des Vampires"
        }, {
            type: "radio",
            name: "band",
            value: 5,
            label: "Other"
        }, {
            type: "button",
            value: "Yes"
        }]
        }];
    myForm = new dhtmlXForm("myForm", formData);
}
</script> <div id="myForm"></div>