Q:

How can i remove last element of span tag in menu using jscript?

i have menu structrue like below
Testimonials | Photo Credits | Privacy Policy | Terms of use|
how do i remove the last pipe (|) symbol using jscript. every pipe(|) within the 
<li><span> | </span></li>

how

A:

using jQuery?
$("li span:last").remove();

or like Pointy pointed out, just don't place it there in the first place.

