冻结div中所有input、textarea等

不凡 前台 933
<div class="ibox-content" id="locking">
    <form action="" method="post" class="form-horizontal" enctype="multipart/form-data" id="checkForm">
        <div class="form-group">
            <div class="col-md-12">
                <label onclick="passThrough()" class="checkbox-inline i-checks">
                    <input type="radio" name="operation" value="0" checked="checked"
                           class="flat-green minimal"/>&nbsp;&nbsp;
                    <span class="text-navy">通过</span>&nbsp;&nbsp;

                </label>
                <label onclick="veto()" class="checkbox-inline i-checks">
                    <input type="radio" name="operation" value="1"
                           class="flat-red minimal"/>&nbsp;&nbsp;
                    <span class="text-danger">否决</span>

                </label>
            </div>
        </div>
        <div th:replace="checkLanguage/commonCheckLanguage::commonCheckLanguage"></div>
        <div class="form-group">
            <div class="col-md-12">
                <label>意见:</label>
                <textarea id="remark" name="remark" rows="3" class="form-control input-sm" th:text="${remark}"></textarea>
            </div>
        </div>
    </form>
</div>

冻结div中所有一句话

$("#locking div *").attr("disabled",true);

效果对比

冻结前

冻结div中所有input、textarea等-第1张图片-爱制作博客

冻结后

冻结div中所有input、textarea等-第2张图片-爱制作博客

标签: input

发布评论 0条评论)

  • Refresh code

还木有评论哦,快来抢沙发吧~