How can I hide all the rows of a table (MyTable) whose first cell content is "AAAA"? ?? When the checkbox (MyCheckbox) is checked, and when the checkbox (MyCheckbox) is not being used with Jquery, the rows are displayed?
Thanks
This should do the trick. It connects a click handler with "MyCheckbox", which flashes when clicking. If the box is checked then it goes above every TD in the table and checks the text. If the text is "AAA", then it hides it.
$ ("#MyCheckbox"). Click (function () {if ($ (this) .is (":" checked) {$ ("tr td: first-child", "# myTable"). (Function () {if ( $ (This) .text () == "aaa") {$ (this) .clostest ("tr") () () () () (. () (.) (Text) == "Aaa") {$ (This) .closest ("tr"). Show ();}});}});
Comments
Post a Comment