I have the following code:
var fieldSet = "<div class='checkbox'><label><input " + propRequired + " data-is-common-control-note='" + IsCommonControlNote + "' data-is-required='" + IsRequired + "' class='input-details' type='checkbox' " + isDisabled + " id='"+id+"-" +
ControlId + "' control-type='" +
ControlType + "' name='" + ControlId + "' value='" + ControlName + "'>";
if (ControlCaption !== "") {
fieldSet = fieldSet + ControlCaption;
}
else {
fieldSet = fieldSet + PhysicalName;
}
fieldSet = fieldSet + "</label></div>";
var html = '<div control-type="' +
ControlType + '" name="' +
ControlName + '" data-field="' +
PhysicalName + '" style="position:absolute; z-index:' + zIndex + "; left:" +
ControlLeft + 'px; top:' +
ControlTop + 'px; height: ' +
ControlHeight + 'px; width:' +
ControlWidth + 'px;">' + fieldSet + '</div>';
$(html).appendTo(ContainerId);
When executing that block of code the checkboxs come out to me in the following way:
What could I do so that the text does not come out so close to me ????
Here is a fragment of the html code:
<div control-type="TIssCheckBox" name="IssCheckBox13" data- field="IssCheckBox13" style="position:absolute; z-index:0; left:8px; top:2877px; height: 17px; width:97px;">
<div class="checkbox">
<label>
<input data-is-common-control-note="" data-is-required="" class="input-details" disabled="disabled" id="Mother-7710" control-type="TIssCheckBox" name="7710" value="IssCheckBox13" type="checkbox">
Mother
</label>
</div>
</div>