Excellent Programming Tricks

Grab tag, id or class and make object element | JavaScript

  1. function XYZ(){
       var objects = $('article');
       var i = 0;

       setInterval(function(){
            if( i >= objects.length ) return false;
            var element =objects[i];
            console.log(element.innerHTML);
            $(element).addClass('myClass');
         i++;
       }, 200);
    }

No comments:

Post a Comment


Authentic аnd Excellent

Website

HTML Template

Wordpress Theme

Database applications

OR

Application services?

Excellent Programming Tricks (EPT) || Iftekhar-IT || We develops the Web applications and the WordPress templates. || Excellent Programming Tricks (EPT)

© 2020 Blogger Theme by Iftekhar IT || Excellent Programming Tricks

Execllent Programming Tricks. Powered by Blogger.