JSFiddle - React, Tailwind, and code Playground

by morrison

HTML

<div id='values'>
    <div>345000000, 46400000000</div>
    <div>123456789, 98765432100</div>
    <div>543216789, 00987654321</div>
</div>

JavaScript

(function($) {

    //store all the values in an array.  Might be useful.
    var values = [];

    //loops through all the divs, splits and stores them
    $('#values div').each(function() {
        values[values.length] = $(this).text().split(', ');
    });

    //shows the output in the console.  Assumes FireBug in FF or Chrome.
    console.log(values);

}(jQuery));