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:
<input type="text" value="!!!" id="test">
Let's write a new value 'www' to the same attribute:
$('#test').attr('value', 'www');
HTML the code will look like this:
<input type="text" value="www" id="test">
Add all li class test.
Replace href of each link with '!'.
Add the target='_blank' attribute to each link.
Replace the content of each link (anchors) with their href.
Replace the content of each link with the content of href in parentheses.
Insert the anchor into the title attribute of each link.