use of .attr