I have tried all the methods suggested online. But none seems to work. I tried the following,
<script>
document.all("Add new document").innerHTML="Add ur new text";
</script>
and this
http://techtrainingnotes.blogspot.com/2010/08/sharepoint-2010-change-add-new-item-and.html
<script>
var ttnA = document.getElementsByTagName('A');
var ttnCounter = 0;
for (var j=0; j<ttnA.length; j++)
{
if (ttnA[j].id == 'idHomePageNewItem')
{
ttnCounter ++;
if (ttnCounter == 2)
{ ttnA[j].innerHTML='your new text goes here' }
}
}
</script>
How can I change the text of the "Add new event" in web part? and where to add the java script exactly?