title: Target GIFs with jQuery
body: <p>Is there a way to target all the GIFs src? I want to apply a JS code to just GIFs.</p>
  
  <p>This is the code I have at the moment, but it's targeting the img:</p>
  
  <pre><code>$(document).ready(function(){
      $('#banner img').each(function () {
        var curSrc = $(this).attr('src');
        $(this).attr('src', curSrc.split('?')[0]);
      });
  });
  </code></pre>
  
  <p>EDITED: The GIFs have params (that's why I am using the code above, to remove those params), so I can't target the final string as it's is not .gif</p>
  
  <p>This is how the HTML looks: <code>&lt;img src="/asset/News/6001/gif-anim.gif?thumbnail_width=2000&amp;amp;thumbnail_height=500&amp;amp;resize_type=CropToFit" height="500" width="2000" alt=""&gt;</code></p>