jQuery: fading out 2 elements, when 1 has been clicked
问题 I have a PHP/PostgreSQL/Oracle-script which displays links as "tags", which can be clicked to display only the database records matching that "tag". And then I have an "X" near every "tag", so that the user can hide uninteresting "tags": I would like to add a fade out effect to the both elements (the "tag" and the "X") - when the "X" has been clicked. So I am trying: <!DOCTYPE html> <html> <head> <style> a.hide { color:#3E6D8E; background-color: #E0EAF1; border-bottom: 1px solid #3E6D8E;