Full-Featured AJAX Web Views (standard outline views)
Hi All, Now you can search the table using jquery. Here is the code. The only problem is that if you show the scroll bar, the search woks perfectly but when you scroll up/down you can see all the data . Here is how it works:
// When value of the input is not blank<br/> if( $(this).val() != "")<br/> {<br/> // Show only matching TR, hide rest of them<br/> $("#my-table tbody>tr").hide();<br/> $("#my-table td:contains-ci('" + $(this).val() + "')").parent("tr").show();<br/> $('.header').parents('tr').show() //for showing the headers<br/> //$('.scrollBar').parents('tr').show() for showing the search bar<br/>
}<br/> else<br/> {<br/> // When there is no input or clean again, show everything back<br/> $("#my-table tbody>tr").show();<br/> }<br/>
return (elem.textContent || elem.innerText || $(elem).text() || "").toLowerCase().indexOf((match[3] || "").toLowerCase()) >= 0;<br/>