Skip to content

Latest commit

 

History

History
19 lines (10 loc) · 516 Bytes

setSelect2Data.md

File metadata and controls

19 lines (10 loc) · 516 Bytes

Set a select2 value using select2("data", object)

Examples:

browser.setSelect2Data("input[type=hidden].has-select2", {id:1, text: "hello"})

Author: maxgalbu

Params:

  • String selector - jQuery selector for the select2 input/select2
  • Object data - data of the element to be set (see the example)
  • Function [callback] - function that will be called after the element's value has been set