-5

var faxNum = $("#txt_faxnum").val();

//Value : ""kekurt kekt809" <(732) 588-8300>"

I want to split between "< >". Example: Just I need to this section : (732) 588-8300

How to split this string ?

oxxxo
  • 33
  • 10

1 Answers1

0

You can try this

var String=faxNum.substring(str.lastIndexOf("<")+1,faxNum.lastIndexOf(">"));
SF..MJ
  • 862
  • 8
  • 19