DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
trim text after a certain word in js
var new_str = str.substring(0, str.indexOf("Example"));
PREVIOUS
NEXT
Tagged:
#trim
#text
#word
#js
ADD COMMENT
Topic
COMMENT
Name
7+3 =
Submit