val

.val( [value] )

valueIf Specified, set the input to the value or return the value or the input

set the input to the value or return the value or the input

<select id="e1"> <option value="1">1</option> <option value="2">2</option> <option value="3" selected="selected">3</option> <option value="4">4</option> <option value="5">5</option> </select> <script> var el = qsi("el"); var ret = el.val(); // 3 el.val("4"); ret = el.val(); // 4 </script>

setNoChanges

.setNoChanges()

Indicate that the select element is not modified

<select id="e1"> <option value="1">1</option> <option value="2">2</option> <option value="3" selected="selected">3</option> <option value="4">4</option> <option value="5">5</option> </select> <script> var el = qsi("el"); el.setNoChanges(); </script>

isModified

.isModified()

Indicate if the select element is modified or not

<select id="e1"> <option value="1">1</option> <option value="2">2</option> <option value="3" selected="selected">3</option> <option value="4">4</option> <option value="5">5</option> </select> <script> var el = qsi("el"); var ret = el.isModified(); </script>

fill

.fill(data, keyName,valueName, linkData)

data array of objects

keyNamename of property for the key of each option

valueNamename of property value for value of each option/p>

linkDataboolean indicate if full objet is attach to the option

Fill the select with data

<select id="e1"> <option value="1">1</option> </select> <script> qsi("el").fill([{ k: 1, v: "one" }, { k: 2, v: "two" }, { k: 3, v: "three" }, ], "k", "v", false ); </script>