/*! * jQuery Plugin: Table Filter - version 0.1.2 * http://github.com/hail2u/jquery.table-filter * Insert a input form for filtering table rows dinamically. * * Copyright (c) 2009 Kyo Nagashima * This library licensed under MIT license: * http://opensource.org/licenses/mit-license.php */ (function($) { $.fn.addTableFilter = function (options) { var o = $.extend({}, $.fn.addTableFilter.defaults, options); if (this.is("table")) { // Generate ID if (!this.attr("id")) { this.attr({ id: "t-" + Math.floor(Math.random() * 99999999) }); } var tgt = this.attr("id"); var id = tgt + "-filtering"; // Build filtering form var label = $("