I have an array with certain values with a <span>
element attached to them, something like this:
var array = [
'Asia <span class="hide">1234</span>',
'Ireland <span class="hide">65dhh</span>',
'US West<span class="hide">323-hth</span>',
'Asia Pacific <span class="hide">ap-ss-1</span>',
'US West <span class="hide">us-323223-1</span>'
]
where the values inside the <span>
are the unique ids for the values of the country. now I'm trying to retrieve only the values inside the <span>
and ignore the countries values, like in the o/p I want to have an array of:
var newarray = ["1234, 65dhh, 323-hth,ap-ss-1..."];
// I tried using the ```split``` function, but returns undefined
newarray.push(record[0].getValue().forEach(function(e){e.split('<span class="hide">')})
any ideas on this? thanks