here is solution, i create a text field to dynamic add new items in array my html code is
<input type="text" id="name">_x000D_
<input type="button" id="btn" value="Button">_x000D_
<div id="names">_x000D_
</div>
_x000D_
now type any thing in text field and click on button this will add item onto array and call function dispaly_arry
$(document).ready(function()_x000D_
{ _x000D_
function display_array()_x000D_
{_x000D_
$("#names").text('');_x000D_
$.each(names,function(index,value)_x000D_
{_x000D_
$('#names').append(value + '<br/>');_x000D_
});_x000D_
}_x000D_
_x000D_
var names = ['Alex','Billi','Dale'];_x000D_
display_array();_x000D_
$('#btn').click(function()_x000D_
{_x000D_
var name = $('#name').val();_x000D_
names.push(name);// appending value to arry _x000D_
display_array();_x000D_
_x000D_
});_x000D_
_x000D_
});_x000D_
_x000D_
showing array elements into div , you can use span but for this solution use same id .!