adding attributes

adding attributes

Is there a standard jquery command to write inside a tag? I'd like to write a script that writes in the target attribute for every a href that has a value of pdf in it.

I have everything written but the part to add in the attribute, and I don't think .prepend or .append would do it.