Hello again, just another quick one:
I am noticing differences with fadeOut dependant on whether this is a target. Here's my structure.
I have rows of data on my page, and each row has two icons. One is an update icon for that row, one is a delete icon for that row. When a user clicks the update icon for a particular row, I want both the update and the delete icons to fade away. So, in order to fade the thing the user clicked (the update button) and its corresponding delete button, I am using...
$(this).next().add(this).fadeOut('slow');
...which works, but the two elements don't fade at the same time. this fades first (which is the update icon), and then this.next fades out (the delete icon). But if I specify the two elements by name...
$('#updS2, #delS2').fadeOut('slow');
then they fade together. Why is it different?
Apologies for Friday rambling.
====EDIT====
Also noticed the delay using andSelf:
$(this).next().andSelf().fadeOut('slow');