File: /www/wwwroot/fuwufei.xxlht.com1/public/tj/js/jquery.dynamic-rows.min.js
/*
* ssdDynamicRows jQuery plugin
* Examples and documentation at: https://github.com/sebastiansulinski/dynamic-rows
* Copyright (c) 2015 Sebastian Sulinski
* Version: 1.0.0 (27-FEB-2015)
* Licensed under the MIT.
* Requires: jQuery v1.9 or later
*/
!function(n){n.fn.ssdDynamicRows=function(i){"use strict";function e(n){n.preventDefault(),n.stopPropagation()}function t(i){var e=i.find(":input"),t=i.find("label"),s=i.find(l);return n.each(e,function(){var i=n(this).prop("name").split(c.nameDivider),e=i[0]+c.nameDivider+(parseInt(i[1],10)+1);n(this).prop("name",e).prop("id",e).val("")}),n.each(t,function(){var i=n(this).prop("for").split(c.nameDivider),e=i[0]+c.nameDivider+(parseInt(i[1],10)+1);n(this).prop("for",e).prop("class",e).find(".warning").remove()}),n.each(s,function(){n(this).remove()}),i}function s(n){return t(n.closest(d).clone())}function o(i){i.on(c.eventType,f,function(t){e(t);var o=n(this).closest(d),a=s(o);i.find(f).hide(),i.append(a),i.find(u).show()})}function a(i){i.on(c.eventType,u,function(t){e(t);var s=n(this).closest(d);s.fadeOut(200,function(){n(this).remove();var e=i.children(d);e.last(d).find(f).show(),e.length<2&&e.last(d).find(u).hide()})})}function r(n){n.last(d).find(u).hide()}var c=n.extend({eventType:"click",classContainer:"dynamicRows",classRow:"row",classAddButton:"dynamicAdd",classRemoveButton:"dynamicRemove",classWarning:"warning",nameDivider:"-"},i),d="."+c.classRow,f="."+c.classAddButton,u="."+c.classRemoveButton,l="."+c.classWarning;return this.each(function(){r(n(this)),o(n(this)),a(n(this))})}}(jQuery);