This type of question has probably been asked before, but I cannot get the specific variation I need to work. Using jquery, I just need to have the output html automatically change when the page first loads, without user interaction.
So, I'm stuck with this html that I cannot modify:
<ul>
<li><a href="A" class="fullProfile">View Full Profile</a></li>
<li><a href="author" class="extLink">Laboratory Page</a></li>
</ul>
I need all of the above to change to just:
<a name="A" class="letter">A</a>
As you might guess, I'll need to ultimately repeat this 26 times (so I have anchor links for every letter), so something lite and efficient that I can easily repeat would be great.
A jsfiddle or similar would be ideal, showing what I need to put in the <head> of my document as I'm definitely not jquery proficient!
Thanks, Dar.
$('ul').html('new html');perhaps? Edit: Might need to call parent before:$('ul').parent().html('new html');.