This is the image showing the page with and without locker service

When we enable the locker service, then the select box is not populating with the options i.e. no option is visible and its not there in dom as well

  • What javascript library are you using? Mar 23, 2017 at 15:23
  • jQuery Datatable, it has jQuery built in Mar 24, 2017 at 4:35

1 Answer 1


This is the DataTable code which creates select box

Now The cause of issue
Locker service disrupts the Option class As seen, new Option is not able to produce the html with locker service enabled
So I manually created the HTML for the select box and did not add event handlers, since they were already created by datatable of delegated type

you can find those event handlers by searching "change.dt" in datatable code

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .