I’m having difficulty replacing the text of a link with new text.
I have the following line
$('#myLink').text("UpdateValue");
This used to work before until I made a change to fix something that should have never been broken.. and now this is appending text & not replacing it.
Can somebody please confirm that it should replace the existing text, and not append the text to the existing text? Or am I going nuts??!!
Thanks
(Crazy) Dave
It was a PEBKAC error.
a careless copy & paste resulted in the following being pasted into a UserControl:
note the absence of
</a>For whatever reason the browser tried to complete the unfinished HTML in its own way & whatever way that was, jQuery didn’t agree with it.
Thanks guys
Dave