I have an array:
var countryArray = [];
That I'm dynamically inserting values to with click events:
(on click...)
countryArray.push("Australia");
and then finally appending to a div for output:
$('#summary-countries').append(countryArray+'');
So my output could be:
Australia,United Kingdom,Finland,Japan.
Is there any way how I could insert some text so that it would output as the following:
Australia,United Kingdom,Finland **AND** Japan.
Any help would be appreciated!