You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 2-ui/4-forms-controls/1-form-elements/article.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -156,7 +156,7 @@ For instance:
156
156
157
157
### input and textarea
158
158
159
-
.به مقدار آن دسترسی داشته باشیم radio buttons و checkboxes برای `input.value` (string) یا `input.checked` (boolean) ما میتوانیم با
159
+
.به مقدار آنها دسترسی داشته باشیم radio buttons و checkboxes برای `input.value` (string) یا `input.checked` (boolean) ما میتوانیم با
160
160
161
161
مثل این:
162
162
@@ -168,20 +168,20 @@ input.checked = true; // radio button یا checkbox برای یک
168
168
```
169
169
170
170
```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>` لطفا توجه کنید که با اینکه
172
172
173
-
It stores only the HTML that was initially on the page, not the current value.
173
+
.که در ابتدا در صفحه بوده را ذخیره میکند، نه مقدار فعلی را HTML آن فقط
174
174
```
175
175
176
176
### select and option
177
177
178
-
A `<select>` element has 3 important properties:
178
+
:مهم دارد property سه `<select>` element یک
179
179
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>` *تعداد*
183
183
184
-
They provide three different ways of setting a value for a `<select>`:
184
+
:عرضه میکنند `<select>` کردن یک مقدار برای set آنها سه راه مختلف برای
185
185
186
186
1. Find the corresponding `<option>` element (e.g. among `select.options`) and set its `option.selected` to `true`.
187
187
2. If we know a new value: set `select.value` to the new value.
0 commit comments