Add an attribute to an option of a select input 2

Add an attribute to an option of a select input 2

coderxcoderx Posts: 45Questions: 7Answers: 0

Hi Allan,

I noticed there is already post on this topic located on https://www.datatables.net/forums/discussion/30713/add-an-attribute-to-an-option-of-a-select-input, but in the end you mentioned:

If anyone else posts about this I'll look into adding it in. October 12, 2015 4:48PM

So I am posting. :) I would be interested in attribute disabled="true":

fields: [{
  label: "Country:",
  name: "country",
  type: "select",
  opts: [
      {label: "Country A", value: "a"},
      {label: "Country B", value: "b", disabled: "true"}, // So user can not select it.
      {label: "Country C", value: "c"},
  ]
}]
This discussion has been closed.