I want to change the "New Item" text into "Yeni Ekle". I viewed the source of the list from browser. Here is the part of the New Item;
<a id="idHomePageNewItem" ...........>
<span ...>
<img id="idHomePageNewItem-img" ....></img>
</span>
<span> new item </span>
</a>
And here is my code for change the text. But it doesn't work. Why doesn't it work?
Updated:
<asp:content contentplaceholderid="PlaceHolderAdditionalPageHead" runat="server">
<SharePoint:RssLink runat="server"/>
<SharePoint:scriptlink ID="ScriptLink" Name="SP.js" runat="server" OnDemand="true" Localizable="false"></SharePoint:ScriptLink>
<script type="text/javascript" src="/../../../Style Library/SolidQ-SPS-JS.js"></script>
<script type="text/javascript">
ExecuteOrDelayUntilScriptLoaded(ChangeText,"sp.js");
function ChangeText() {
document.getElementById('idHomePageNewItem').getElementsByTag("span")[1].innerHTML="Yeni Ekle";
}
</script>
</asp:content>