設置自定義擴展屬性及展示佈局

var rooturl = "../../jsonHttpServlet?channelNo=1";
var GetToJson;
var LLid
function lisize(sel) {
    $('.frmb li').each(function() {
        $(this).change(function() {
            var LLid = $(this).attr('id');
            if (sel[sel.selectedIndex].value == "full") {
                $("#" + LLid).addClass('width100');
                $("#" + LLid).removeClass('width50');
                $("#" + LLid).removeClass('width30');
                $("#" + LLid).removeClass('width20');
            } else if (sel[sel.selectedIndex].value == "half") {
                $("#" + LLid).addClass('width50');
                $("#" + LLid).removeClass('width100');
                $("#" + LLid).removeClass('width30');
                $("#" + LLid).removeClass('width20');
            } else if (sel[sel.selectedIndex].value == "third") {
                $("#" + LLid).addClass('width30');
                $("#" + LLid).removeClass('width50');
                $("#" + LLid).removeClass('width100');
                $("#" + LLid).removeClass('width20');
            } else if (sel[sel.selectedIndex].value == "twenty") {
                $("#" + LLid).addClass('width20');
                $("#" + LLid).removeClass('width50');
                $("#" + LLid).removeClass('width100');
                $("#" + LLid).removeClass('width30');
            }
        });
    });
}
window.sessionStorage.removeItem('formData');
jQuery(function($) {
    var fields = [];
    var replaceFields = [];
    var actionButtons = [];
    var templates = {
        inputButton : function(fieldData) {
             return {
                 field :  '<input id="' + fieldData.name + '" name="' + fieldData.name + '" class="form-control  input_button" onclick>  <button class="btn btn-primary">選擇</button',
             }
         },
        // inputButton : function(fieldData) {
        //     return {
        //         field : '<input id="' + fieldData.name + '" name="' + fieldData.name + '" class="form-control  input_button" onclick> ',
        //         onclick: function() {
        //             alert(111)
        //         }
        //     }
        // },
    };
    var inputSets = [ {
        label : '模版示例',
        name : 'user-details',
        id : 'llo',
        icon : '
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章