JengGe Chao JengGe Chao - 4 years ago 89
Javascript Question

Jquery Loop all img tags which are only in <article><article> and not in <header></header>

I want to loop all img tags which are only in article tag and not in header tags with jquery.
Please help me.

Answer Source

That's dipends. If you have only one article tag you can use this:

   $('article img').each(function(){
      //get the images

NOTE: this is just an example to help you out, because you don't say what you want to do with the founded images. But maybe You know how to implement this to do what you need.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download