Wednesday, February 4, 2015

do something for each HTML element decorated with a certain class

<script type="text/javascript">
   var loop = function() {
      $(".dxgvTitlePanel").map(function () {
         var contents = this.innerHTML;
         if (contents) {
            this.innerHTML = "";
            alert(contents);
         }
      });
   };
   var interval = setInterval(loop, 100);
</script>

No comments:

Post a Comment