please see the jsfiddle
I want output check-box for each array.
- how to create array?
- how to add check-box with unique name to array?
Whatever is in the textbox, Separate words and convert to check-box
jQuery:
$(document).ready(function () {
$(".step1_btn").click(function () {
var text = $(".source").text();
text = text.replace(/\W+/g, ',');
$('.splited').html(text);
});
});
HTML:
<textarea class="source">Jusf to clarify, I will to have strings of varying</textarea>
<button type="button" class="step1_btn">Display Date</button>
<div id="demo" class="splited"></div>