Remove Page Name From WordPress Menu

I figured out that I could use the jQuery empty() function like this to remove the text inside the anchorlink,

$('nav > ul > li > a').empty();