Skip to content

nhonx/jquery-multi-select-paragraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jquery-multi-select-paragraph

JQuery plugin allow turning a list of <p> paragraphs into a multiselect list.

Usages:

  • Put your paragraphs in a div element. Currently we only support single list of paragraph (no nesting)
  • Call $("#div").pselect();
  • To fetching list of selected paragraph, call $("#div").pselect("selected"). You can continue to chaining on its return.
  • To simply return a list of raw text, call $("#div").pselect("selectedValues")

Demo:

Check it here: https://nhonx.github.io/jquery-multi-select-paragraph/