Autofill selectize.js
Autofill selectize.js
antoniocib
Posts: 277Questions: 62Answers: 1
in DataTables
Hello, I have a somewhat difficult question, at least for me, in inserting a row in the DataTable I implemented Selectize.js, I wanted that when I validate the field of the type, example:
City = New York
automatically the second field is filled in this way:
Country = USA
I hope I was clear, thank you in advance!
Answers
just use "dependent" with a simple look up table: Whenever the selected value changes you fill the second field with the respective look up table value.
I assume your Editor fields are called "city" and "country".
I didn't test this! I hope I got the "$.grep" right.