> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt ## Resource: setProp() ## Article: setProp() (Element) ## Article Link: https://dev.wix.com/docs/sdk/host-modules/editor/elements/element/set-prop.md ## Article Content: # setProp() Sets the value of the specified [element property](https://dev.wix.com/docs/sdk/host-modules/editor/elements/element/element-properties.md). ## Syntax ```ts function setProp(propName: string, value: string): Promise ``` ## Parameters | Name | Type | Description | | :---- | :---- | :---- | | `propName` | string | Name of the property that you want to set. | | `value` | string | Value of the property that you want to set. | ## Returns `Promise` ## Example ```javascript import { editor, elements } from '@wix/editor'; import { createClient } from '@wix/sdk'; const client = createClient({ host: editor.host(), modules: { elements } }); async function setSelectedElementProp(propName, value) { const response = await myElement.setProp(propName, value); } ```