a 태그에 동적 target 지정하기

script 2014. 1. 7. 19:08


[출처] http://stackoverflow.com/questions/804256/how-do-i-add-target-blank-to-a-link-within-a-specified-div


$('a[href^="http://"], a[href^="https://"]').attr('target', '_blank');
 


Trackbacks 1 : Comments 0

Write a comment