I have a <button>
element which adds an element to my page when clicked.
What I'd like to do is to have an <input>
inside this button, in which I could input a number, and then on button click, it would add x times the element instead of clicking x times on the <button>
See demo here : http://jsfiddle.net/MWxgb/5
The problem is that I can't click inside the <input>
element inside the button, it clicks the button instead.
Is there a way to avoid this behavior ?