Writing a Value to an Attribute in jQuery

You can also add an attribute or write a value to an attribute. Let's say we have an input:

html<input type="text" value="!!!" id="test">

Let's write a new value 'www' to the same attribute:

javascript$('#test').attr('value', 'www');

HTML the code will look like this:

html<input type="text" value="www" id="test">
Задание 1

Add all li class test.

Задание 2

Replace href of each link with '!'.

Задание 3

Add the target='_blank' attribute to each link.

Задание 4

Replace the content of each link (anchors) with their href.

Задание 5

Replace the content of each link with the content of href in parentheses.

Задание 6

Insert the anchor into the title attribute of each link.