A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.dhtmlx.com/suite/form/api/select/select_setoptions_method/ below:

Website Navigation


JavaScript Form - setOptions Select Method

setOptions()

allows changing a list of Select options dynamically

setOptions(options: object[]): void;

Parameters:

Each option is an object with a set of key:value pairs - attributes of options and their values:

Example

form.getItem("select").setOptions([
{ value: "new_1", content: "new_content-1", disabled:true },
{ value: "new_2", content: "new_content-2" }
]);

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4