Text2Checklist

Generates a list of checkboxes from the content of a textarea

A plugin that will build a checklist from the text of a textarea.

If the line starts with a '-' it will add a unchecked checkbox. otherwise of the line starts with a '+' it will add a checked checkbox.

Sample: Simple Initialization

<textarea class="js-text-to-checklist"
      data-editable="false"
      data-checkable="true">
      **Bold header**

      Placeholder text. Fusce congue magna id eros malesuada
      - **Strong bullet point 1**
      - **Strong bullet point 1**
</textarea>

<script type="text/javascript">
    $(document).ready(function(){
        $(".js-text-to-checklist").text2Checklist();
    });
</script>



Sample: Allowed Edit

<textarea class="js-text-to-checklist">
    Placeholder text. Fusce congue magna id eros malesuada
    + Checked option 1
    - unchecked option 2
</textarea>

<script type="text/javascript">
  $(document).ready(function(){
      $(".js-text-to-checklist").text2Checklist({canEdit: true, canCheck:true});
  });
</script>

API

Usage:

$(".js-text-to-checklist").text2Checklist(opts);

Options:

Methods:

Requirements: