I have an input box where I will specify a number like 3 or 4 and below it I have a parent div. As per the number specified in the input box I want to have that many divs inside parent.
<div class="mdl-step__content">
<!-- specify number -->
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
<input class="mdl-textfield__input" type="text" pattern="-?[0-9]*(\.[0-9]+)?" id="text5">
<label class="mdl-textfield__label" for="text5">Number of important collegues</label>
<span class="mdl-textfield__error">Number required!</span>
</div>
<!-- circular divs -->
<div class="parent">
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
</div>
</div>
How can I achieve it?
