Hi y'all, I have a case where I want to do something like:
$("#someId").text($("#someId").attr("alt")); I can avoid making duplicate selections like this: var someId = $("#someId"); $someId.text($someId.attr("alt")); But, that seems like too much code for jQuery. :) I want something like: $someId.text(self.attr("alt")); This doesn't work: $someId.text($(this).attr("alt")); Does that functionality exist and I just couldn't find it in the docs? Thanks.