-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
  • 23
  • 8

1 Answers1

0

You can try this

var String=faxNum.substring(str.lastIndexOf("<")+1,faxNum.lastIndexOf(">"));
useless'MJ
  • 797
  • 6
  • 19