Skip to content

Commit 9ffab51

Browse files
line 185
1 parent 080a7d0 commit 9ffab51

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

2-ui/4-forms-controls/1-form-elements/article.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ For instance:
156156
157157
### input and textarea
158158
159-
.به مقدار آن دسترسی داشته باشیم radio buttons و checkboxes برای `input.value` (string) یا `input.checked` (boolean) ما می‌توانیم با
159+
.به مقدار آن‌ها دسترسی داشته باشیم radio buttons و checkboxes برای `input.value` (string) یا `input.checked` (boolean) ما می‌توانیم با
160160
161161
مثل این:
162162
@@ -168,20 +168,20 @@ input.checked = true; // radio button یا checkbox برای یک
168168
```
169169
170170
```warn header="Use `textarea.value`, نه `textarea.innerHTML`"
171-
Please note that even though `<textarea>...</textarea>` holds its value as nested HTML, we should never use `textarea.innerHTML` to access it.
171+
.به آن دسترسی داشته باشیم `textarea.innerHTML` تو در تو حفظ می‌کند اما ما هرگز نباید از طریق HTML مقدار خود را به عنوان `<textarea>...</textarea>` لطفا توجه کنید که با اینکه
172172
173-
It stores only the HTML that was initially on the page, not the current value.
173+
.که در ابتدا در صفحه بوده را ذخیره می‌کند، نه مقدار فعلی را HTML آن فقط
174174
```
175175
176176
### select and option
177177
178-
A `<select>` element has 3 important properties:
178+
:مهم دارد property سه `<select>` element یک
179179
180-
1. `select.options` -- the collection of `<option>` subelements,
181-
2. `select.value` -- the *value* of the currently selected `<option>`,
182-
3. `select.selectedIndex` -- the *number* of the currently selected `<option>`.
180+
1. `select.options` -- `<option>` subelements مجموعه‌ای از
181+
2. `select.value` -- در حال حاضر انتخاب شده `<option>` *مقدار*
182+
3. `select.selectedIndex` -- در حال حاضر انتخاب شده `<option>` *تعداد*
183183
184-
They provide three different ways of setting a value for a `<select>`:
184+
:عرضه می‌کنند `<select>` کردن یک مقدار برای set آن‌ها سه راه مختلف برای
185185
186186
1. Find the corresponding `<option>` element (e.g. among `select.options`) and set its `option.selected` to `true`.
187187
2. If we know a new value: set `select.value` to the new value.

0 commit comments

Comments
 (0)