jQuery Exercise Feb 7

1. At the bottom of the NY Times homepage, write one line of Javascript/jQuery to set the background color of the “ARTS” heading in light blue (as illustrated below).



2. On the Wikipedia page for jQuery, write one line of Javascript/jQuery that highlights both the header and the “edit” text in their own green borders (as illustrated below).



3. On this Amazon page, use a single line of Javascript/jQuery to highlight the bold headings in the tech specs table (like this).

When you have it, post your code to your blog for all three exercises. Follow these instructions on how to post the code.

jQuery Screenshot

j(‘p’).css(‘backgroundColor’, ‘pink’);

j(‘p:contains(“Assignment”)’).css(‘font-family’, ‘Impact, Charcoal, sans-serif’);

j(‘h2’).css(‘color’, ‘green’);

jQuery + CSS 2

i wrote one line to replace the background image of an ad with the cutest cat this side of the vermillion and reformat the size and such, and another to get rid of all the text (set opacity to zero.. don’t know if there’s a better way through jquery)