Has anyone tried writing a piece of code that would 'scan' a content of a certain div, and modify every link inside it so that it adds rel="nofollow" to each link?
I'm asking, because i can't add nofollow tag to certain links on my page, but since they are all in the same div, i would like to see if the above idea is possible to execute?
Also, i forgot to mention: Is this method safe SEO wise - as Thad Blankenship mentioned below - will crawlers crawl those links before a proper bit of jquery code that adds no follow to links is executed?