I am trying to display only First and Last name. Sometimes there will be a middle name comes. In that case i need remove the middle name and join first and last name.How is it possible using JavaScript. The name comes to a variable from database like
var displayname="abc pqr xyz"
i just need "abc xyz" to a variable . Thanks in advance