// if has an id $("#atagid").attr("target","_blank"); // if more than one with a class $(".atagclass").each(function() { $(this).attr("target","_blank"); });