Compare two tag attribut


/ Published in: jQuery
Save to your folder(s)



Copy this code and paste it in your HTML
  1. if(jQuery(this).attr('rel') !== jQuery( img ).attr('src') ){
  2. jQuery( img ).fadeOut('fast', function(){
  3. jQuery(this).attr({src : toLoad}).fadeIn('fast');
  4. });
  5. };

Report this snippet


Comments


You need to login to view comments.