I bet the length of the object being returned is 0. Is your selector right?
If you could post a test page it would be much easier for someone to help! - ricardo On Sep 28, 5:30 pm, SeanJA <[EMAIL PROTECTED]> wrote: > For some reason it doesnt even do the first console.log though... > > On Sep 28, 1:42 pm, BB <[EMAIL PROTECTED]> wrote: > > > You don't need .val() just: $(this).attr("alt") > > Please write some more code, because at the moment I think it is all > > right. > > > On 28 Sep., 17:21, SeanJA <[EMAIL PROTECTED]> wrote: > > > > $(".status_actions img").click(function(){ > > > console.log("clicked!"); > > > console.log($(this).attr("alt").val()); > > > > }); > > > > It puzzles me as to why this does not work...