html:
<h1>Favorite Animal:</h1>
<input type='text'>
<button>Answer!</button>
<div id='ans'></div>
Javascript (jQuery)
$(document).ready(function(){
$('button').click(function(){
$('#ans').append('<h2>Bunny</h2>')
})
})
Hey there. I was wondering. Can I make it so that when I type a number into the input[type='text'] and then have that number of "bunny" appear? (example: I type in 3, the word "bunny" appears 3 times).