Documentation can be found e.g. at MDN. Note that .split() is not a jQuery method, but a native string method.

If you use .split() on a string, then you get an array back with the substrings:

var str = 'something -- something_else';
var substr = str.split(' -- ');
// substr[0] contains "something"
// substr[1] contains "something_else"

If this value is in some field you could also do:

tRow.append($('<td>').text(=txtEntry2]').val().split(' -- ')[0])));

Answer from Felix Kling on Stack Overflow
🌐
W3Schools
w3schools.com › jsref › jsref_split.asp
JavaScript String split() Method
If (" ") is used as separator, the string is split between words. ... If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail: sales@w3schools.com · If you want to report an error, or if you ...
🌐
W3Schools
w3schools.com › js › tryit.asp
W3Schools online HTML editor
The W3Schools online code editor allows you to edit code and view the result in your browser
🌐
W3Schools
w3schools.sinsixx.com › jsref › jsref_split.asp.htm
JavaScript split() Method - SinSiXX - W3Schools
Free HTML XHTML CSS JavaScript DHTML XML DOM XSL XSLT RSS AJAX ASP ADO PHP SQL tutorials, references, examples for web building.
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › JavaScript › Reference › Global_Objects › String › split
String.prototype.split() - JavaScript | MDN
The pattern describing where each split should occur. Can be undefined, a string, or an object with a Symbol.split method — the typical example being a regular expression. Omitting separator or passing undefined causes split() to return an array with the calling string as a single element.
🌐
W3Schools
w3schools.com › js › js_string_methods.asp
JavaScript String Methods
text.split("") Try it Yourself » · For a complete reference to all JavaScript properties and methods, with full descriptions and many examples, go to: W3Schools' Full JavaScript Reference. The reference inludes all JavaScript updates from 1999 to 2025. ❮ Previous Next ❯ ·
🌐
W3Schools
www-db.deis.unibo.it › courses › TW › DOCS › w3schools › jsref › jsref_split.asp.html
JavaScript String split() Method
The split() method is used to split a string into an array of substrings, and returns the new array.
🌐
W3Schools Blog
w3schools.blog › home › symbol.split javascript
Symbol.split JavaScript - W3schools
June 6, 2019 - <!DOCTYPE html> <html> <body> <script> class SplitTest { constructor(value) { this.value = value; } [Symbol.split](string) { var index = string.indexOf(this.value); return this.value + string.substr(0, index) + "/" + string.substr(index + this.value.length); } } document.write('w3schools'.split(new SplitTest('java'))); </script> </body> </html>
Find elsewhere
🌐
Cach3
w3schools.com.cach3.com › jsref › jsref_split.asp.html
JavaScript String split() Method - W3Schools
The split() method is used to split a string into an array of substrings, and returns the new array.
🌐
W3Schools
w3schools.com › jsref › jsref_slice_string.asp
JavaScript String slice() Method
The split() Method · The substr() Method · The substring() Method · string.slice(start, end) From position 3 to 8: let result = text.slice(3, 8); Try it Yourself » · Only the first character: let result = text.slice(0, 1); Try it Yourself » · Only the last character: let result = text.slice(-1); Try it Yourself » · The whole string: let result = text.slice(0); Try it Yourself » · JavaScript Strings ·
🌐
W3Schools
w3schools.com › jsref › tryit.asp
W3Schools Tryit Editor - JavaScript Strings
The W3Schools online code editor allows you to edit code and view the result in your browser
🌐
Js
split.js.org
Split.js
We cannot provide a description for this page right now
🌐
Medium
medium.com › nerd-for-tech › basics-of-javascript-string-split-method-4647aa1b0f4e
Basics of Javascript · String · split() (method) | by Jakub Korch | Nerd For Tech | Medium
June 20, 2021 - The split() method is used to split a string into an array of substrings, and return the new array. The split() method does not change the original string. The method has two parameters.
🌐
W3Schools
w3schools.com › jsref › jsref_splice.asp
JavaScript Array splice() Method
W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.
🌐
GeeksforGeeks
geeksforgeeks.org › javascript › javascript-string-split-method
JavaScript String split() Method - GeeksforGeeks
This function returns an array of strings that is formed after splitting the given string at each point where the separator occurs.
Published   December 27, 2017
🌐
freeCodeCamp
freecodecamp.org › news › javascript-split-how-to-split-a-string-into-an-array-in-js
JavaScript Split – How to Split a String into an Array in JS
June 16, 2021 - We can call the split() method on the message string. Let's split the string based on the space (' ') character.