domanda semplice:jQuery selettore di riferimento a sé
Come mi riferisco ad auto senza usare $.each()
per esempio quando voglio impostare html()
di possedere attributi?
$('*[rel]').html($(this).attr('rel')); // nope
$('*[rel]').html($(self).attr('rel')); // nah
$('*[rel]').html($(sender).attr('rel')); // undefined
$('*[rel]').html($(target).attr('rel')); // still undefined
$('*[rel]').html($(???).attr('rel')); // this isn't even correct syntax
$('*[rel]').html($(beer).attr('rel')); // well that would be tasty
$('*[rel]').html($(woman).attr('rel')); // not in this life
$('*[rel]').html($(god help me!).attr('rel')); // He probably doesn't even know how to use a computer
$('*[rel]').html($(i give up).attr('rel')); // unexpected... o'rly?
_Ha probabilmente non sa nemmeno come usare un computer_ :) – undefined
Vota la domanda in sé, se non altro per l'umorismo in esso ... :) – TheCuBeMan