Use chained jquery functions rather than re-selecting the same element.