Make SharePoint more user friendly by giving your users a friendly welcome message. We will use jquery to achieve this. Make sure to include jquery file . You can download it from Jquery Download Link
$(document).ready(function (){ var _welcomemenu = $("a[title='Open Menu']") .clone() //clone the element .children() //select all the children .remove() //remove all the children .end() //again go back to selected element .text(); //get the text of element var _newwelcomemenu = _welcomemenu.split(',')[1] +" " + _welcomemenu.split(',')[0]; //swipe first and last name $("a[title='Open Menu']").text( "Welcome " + _newwelcomemenu); // Add friendly text });
0 comments:
Post a Comment