/** **options to have following keys: **searchText: this should hold the value of search text **searchPlaceHolder: this should hold the value of search input box placeholder **/ (function($){ $.fn.tableSearch = function(options){ if(!$(this).is('table')){ return; } var tableObj = $(this), searchText = (options.searchText)?options.searchText:'Search: ', searchPlaceHolder = (options.searchPlaceHolder)?options.searchPlaceHolder:'', divObj = $('