This should do it:
function adddbItem(){
var text = document.getElementById("textInput").value;
//create array of strings
var textArray = [];
textArray = text.split("\.");
//loop through the array and add each string
for (var i = 0; i < textArray.length; i++)
{
//alert(textArray[i]);
myIdb.indexedDB.adddbItem(textArray[i]);
}
}
Fiddle: http://jsfiddle.net/D68Mb/3/
You need to fix the display method though.