﻿// Corrigeerd de XForm met radiobuttons van het type/class "radio_with_long_labels"
$(document).ready(function() {
    var elements = $("fieldset:has(.radio_with_long_labels)");

    elements.each(function() {
        var fieldset = $(this);
        var td = fieldset.parent();
        var question = td.prev().html();
        td.prepend(question);
        td.prev().remove();
        td.attr("colspan", 2);
        $("input", fieldset).css({
            marginTop: "8px",
            display: "block",
            "float": "left",
            clear: "both",
            width: "20px"
        });
        $("label", fieldset).css({
            marginTop: "5px",
            paddingLeft: "5px",
            display: "block",
            "float": "left",
            width: "310px"
        });
    });
});

