Hari Shanker

Hari Shanker

  • NA
  • 260
  • 34.2k

How To Change The InnerText of anchor Tag Using JavaScript

Mar 20 2016 10:35 AM
Hi  Everyone,
 
 
 I am having an anchor tag i want to change the inner text of anchor tag,as i cannot change the text at server side .so i want to change the text at client side using javascript.
 
my code is below:
<li><a href="#sometext">Change text</a>
 
<div id="sometext ">
 <a hfref="www.somesite.com"></a>
      <div>
  <a hfref="www.mysite.com"></a>
      <div> 
</div> 
 
Thanks
Hari 

Answers (6)