jQuery string split jQuery, .split() by harifrais June 19, 2019 JavaScript var input = "123-hello-world"; var arr = input.split("-"); alert(arr[0]);