Skip to content

Plugin select single/ multiple options of select element with provided datasource.

Notifications You must be signed in to change notification settings

taranglute/Selectoption

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SelectOption - Handy way to select options.

Plugin select single/ multiple options of select element with provided datasource. Currently plugin supports three sources i.e single value, array, Json object.

Parameters

- datasource  : singlevalue, array, json.
- data        : Data that need to be selected.
- comparewith : Attrbiute of json object that will be used to compare with element value.

Example 1

$("select").Selectoptions({data:[2]})

or 

$("select").Selectoptions({data:2})

Example 2

$("select").Selectoptions({data:[1,2]})

Example 3

$("select").Selectoptions({comparewith: "label",datasource:"json",data:[{label:"1",Caption:"One"},{label:"3",Caption:"Three"}]})

About

Plugin select single/ multiple options of select element with provided datasource.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published