/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) * Copyright (c) 2013-2018 北京泉江科技有限公司 * 创建人:超级管理员 * 日 期:2019-04-23 15:50 * 描 述:问卷管理 */ var refreshGirdData; var VID = request("VID"); var bootstrap = function ($, learun) { "use strict"; var page = { init: function () { $('.warpper').lrscroll(); page.bind(); }, bind: function () { //单选框 $('.shenInputBox').on('click', '.inputRadio', function () { if (!$(this).hasClass('active')) { $(this).addClass('active').parents('.shenInputBox').find('.inputRadio').not($(this)) .removeClass('active'); judgeRideo($(this)); } }); //多选框 $('.inputCheck').click(function () { if ($(this).hasClass('active')) { $(this).removeClass('active'); } else { $(this).addClass('active'); } judgeRideo($(this)); }); //是否为其他选项判断 function judgeRideo(obj) { var parents = obj.parents('.signSec2Box'); var inputs = parents.find('.shenInput3'); if (parents.find("i[hasinput='yes']").hasClass('active')) { inputs.css({ display: 'block' }); } else { inputs.css({ display: 'none' }); } } $('form').find("input.xuanze:checked").each(function (index, element) { if ($(this).attr("hasinput") == "yes") { $("#" + $(this).attr("id") + "Other").parents(".shenInput3").css({ display: 'block' }); } }); } }; page.init(); }