Using ajax: Apply jquery function to ajax content on newest questions tagged ajax – Stack Overflow

I want to apply this function to content which is loaded by ajax. Thing is, the function is not working on such content. Is there somehow a workaround for this each-function?

     $(".liquidcam").each(function(index) {
          if( (!this.width || !this.height) ) {

         $(this).parent().parent().hide("fast");
        }

        $(this).error(function() {

         $(this).parent().parent().hide("fast");
        });

  });

See Answers


source: http://stackoverflow.com/questions/8771366/apply-jquery-function-to-ajax-content
Using ajax: using-ajax



online applications demo