I'm trying to figure out how to get this second div to show upon adding a value when enter is clicked. So after we fill in a empty space > hit enter > that value stays on page > second div shows up for us to enter another value...
var oTWExample1 = new Typewriter(/* elements: */ "#bluebox, #first, #second", /* frame rate (optional): */ 100);
/* default frame rate is 100: */
// var oTWExample2 = new Typewriter("#controls");
// var oTWExample3 = new Typewriter(/* elements: */ "#second", /* frame rate (optional): */ 100);
onload = function () {
oTWExample1.play();
oTWExample2.play();
};
function enter(ele) {
if(event.keyCode == 13) {
document.getElementById("#second").style.display= 'block';
// oTWExample3.play();
// value += ele.value;
}
}
//This is the HTML portion of it//
<div id="poem"> $he went to the <form><input type="text" onkeydown="search(this)"/></form>
</div>
<div id="second" style="display: none">
and saw an array of <form><input type="text" onkeydown="search(this)"/></form>
</div>