Function.prototype.jqBind = function (scope, extraArguments) { var jQueryF = this; var newFunc = function () { var args = [jQuery(this)] args.push(arguments[0]); if (typeof extraArguments == "object") { args = args.concat(extraArguments); } return jQueryF.apply(scope, args); } return newFunc; } jQuery.fn.setVal = function (val) { var $me = this; if ($me.is("input[type='checkbox']") || $me.is("input[type='radio']")) { var check = (val === 1 || val === "1" || val === true) ? true : false $me.tick(check) } else if ($me.is("select,input,textarea")) { $me.val(val); } else { $me.html(val); } return $me; } jQuery.fn.getVal = function () { var $me = this; if ($me.is("[data-field]") && $me.is("[data-value]")) { return $me.data("value"); } else if ($me.is("input[type='checkbox']") || $me.is("input[type='radio']")) { if ($me.attr("data-getval")) { return ($me.is(":checked")) ? $me.val() : 0; } else { return ($me.is(":checked")) ? 1 : 0; } } else if ($me.is("select,input,textarea")) { return $me.val(); } else { return $me.html(); } } jQuery.fn.reverse = [].reverse; jQuery.fn.slideUpRemove = function () { this.slideUp(function () { jQuery(this).remove(); }) return this; }; /** * Refresh stored selector html elements */ jQuery.fn.refresh = function () { var elems = jQuery(this.selector).toArray(); this.splice(0, this.length); this.push.apply(this, elems); return this; }; /** * Refresh stored selector html elements */ jQuery.fn.slideRight = function () { var elems = jQuery(this.selector).toArray(); this.splice(0, this.length); this.push.apply(this, elems); return this; }; /* FILE ARCHIVED ON 13:35:53 Aug 20, 2015 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 13:16:17 Oct 13, 2017. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */


https://www.iVisa.com