编辑Semantic-UI广播组的顶部标签

时间:2018-08-22 06:14:37

标签: jquery html semantic-ui

我正在Chronoforms中制作一个使用Semantic-UI的表单,我需要将输入字段的值应用于无线电组的标签。我在选择开始标签时遇到了麻烦-当然应该有一种简单的方法来完成此操作?我的HTML大致如下:

<div class="multifield grouped fields required">
    <label>Is this pet sterilised?</label>   <<------ THIS is what I'm trying to change
    <div class="field">
        <div class="ui checkbox radio">
            <input class="hidden" data-events="[]" data-validate="is_this_pet_sterilised-main" data-validationrules="{&quot;identifier&quot;:&quot;is_this_pet_sterilised-main&quot;,&quot;rules&quot;:[{&quot;type&quot;:&quot;minChecked[1]&quot;,&quot;prompt&quot;:&quot;Your pet's sterilisation status is required&quot;}]}" id="is_this_pet_sterilised0" name="is_this_pet_sterilised" tabindex="0" type="radio" value="1"> <label for="is_this_pet_sterilised0">Yes</label>
        </div>
    </div>
    <div class="field">
        <div class="ui checkbox radio">
            <input class="hidden" data-events="[]" id="is_this_pet_sterilised1" name="is_this_pet_sterilised" tabindex="0" type="radio" value="0"> <label for="is_this_pet_sterilised1">No</label>
        </div>
    </div>
</div>

0 个答案:

没有答案