Echo the .lenth value?

Echo the .lenth value?

Hi guys

I just want to echo the .length value of all images that has an 'alt' attribute.

  1. $(document).ready(function(){  
  2. $('img[alt]').text("Found " + $("img[alt]").length + " img alt attribute.");
  3. });  

Is my codes above correct?
I tried it, and I did not saw any output.

Can you spot the not?

Thanks in advanced.


-warren