Created
April 28, 2016 09:31
-
-
Save Maxghp/4ae1a5804189d01e6eb7257ccd4d9c03 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script> | |
| $(document).ready(function(){ | |
| //cycle | |
| $(document).find(".na td").each(function () { | |
| //the element length which == 0 | |
| var len = $(this).html().trim().length; | |
| if(len == 0) { | |
| //do something | |
| $(this).text("N/A"); | |
| $(this).css("background","red"); | |
| } | |
| }) | |
| }) | |
| </script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment