Monday 15 April 2013

jQuery - Open all links in id in new window -


Can anyone tell me a way to open all links within an ID in a new window?

Put it in the head:

  $ (function () {$ ('# Selector') .attr ('target', '_blank');})  

No comments:

Post a Comment