H,i I need to edit some links on a page. The first part of below code works but causes other problems on the page because the id is not targeted. The second part of code works for text but not links. I can't just replace the links as a query will be dynamically added to the end of each link. So in summary i just need to replace parts of all links with an input id "btnViewDetails". Any help would be great. Cheers


HTML Code:
<script language="javascript">
document.body.innerHTML = document.body.innerHTML.replace(/JobSeekers/g,'mobile');
</script>

HTML Code:
<script type="text/javascript">
		$('#btnViewDetails').each( function() { 
        $(this).html($(this).html().replace(/JobSeekers/g,'mobile'));
    });
</script>