jsfiddleを参照してください
各配列の出力チェックボックスが必要です。
- 配列を作成するには?
- 一意の名前のチェックボックスを配列に追加する方法は?
テキストボックスにあるものは何でも、単語を区切り、チェックボックスに変換します
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>