Split "getelementbyid" Into Multiple Stings Based On A Character In Javascript?
How can I split an 'document.getElementById('demo').innerHTML = xhttp.responseTex' into different tag ID's based off of a single character '|'? Here is a picture of what I am looki
Solution 1:
|
inside a regexp is just logical or. To split by the |
character, you simply run myString.split('|')
.
Post a Comment for "Split "getelementbyid" Into Multiple Stings Based On A Character In Javascript?"