I need someone to solve this issue I’m having with a link of mine.
This is my link to a blog and the URL changes, so the jquery shouldn’t be hard coded. The class on this link will not change.
Example 1
<a class="example" href="http://www.blogname.com/blog_title_here">Hello World</a>
Meanwhile, I have a manually created “read more” link that is hard coded beneath the blog preview with a “different class” that will not change. I would like only the href from the dynamic link to replace the read more link.
Replace this URL…
<a class="differentclass" href="http://javascript:void(0);">Read More</a>
…with the dynamically changing URL from example 1 and this would be the end result.
<a class="differentclass" href="http://www.blogname.com/blog_title_here">Read More</a>
Not sure if I fully understand your question but wouldnt a simple:
<a class="differentclass" href="http://javascript:void(0);" id="ReadMoreLink">Read More</a>and the script:
fix it?