Search Table Row by jquery Search content from table using jQuery. Live searching method via jquery Create function to remove highlight content. If content not matched. function removeHighLighting (elm){ elm.each(function(){ var element = $(this); element.replaceWith(element.html()); }) } Create function to highlight matched content. function addHighLighting (elm, data){ var text = elm.text(); var highlightedText = '<em>' + data+ '</em>'; var newText = text.replace(data, highlightedText); elm.html(newText); } Search text on keyup $("#search").on("keyup", function() { ...
Coding Cheatsheets - Learn web development code and tutorials for Software developers which will helps you in project. Get help on JavaScript, PHP, XML, and more.