add attribute to another element jquery code example Example: jquery set att $input.attr("attributeName", "attributeValue");