Skip to content

Commit 25d2ba8

Browse files
line 238
1 parent 7f55860 commit 25d2ba8

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ For instance:
161161
مثل این:
162162
163163
```js
164-
input.value = "New value";
165-
textarea.value = "New text";
164+
input.value = "جدید value";
165+
textarea.value = "جدید text";
166166
167167
input.checked = true; // radio button یا checkbox برای یک
168168
```
@@ -173,7 +173,7 @@ input.checked = true; // radio button یا checkbox برای یک
173173
.که در ابتدا در صفحه بوده را ذخیره می‌کند، نه مقدار فعلی را HTML آن فقط
174174
```
175175
176-
### select and option
176+
### select و option
177177
178178
:مهم دارد property سه `<select>` element یک
179179
@@ -205,11 +205,11 @@ input.checked = true; // radio button یا checkbox برای یک
205205
</script>
206206
```
207207
208-
Unlike most other controls, `<select>` allows to select multiple options at once if it has `multiple` attribute. This attribute is rarely used, though.
208+
.به ندرت استفاده می‌شود attribute به طور همزمان انتخاب شوند. با این حال، این option داشته باشد، اجازه می‌دهد که چند attribute `چند` `<select>` های دیگر اگرcontrol برعکس بیشتر
209209
210-
For multiple selected values, use the first way of setting values: add/remove the `selected` property from `<option>` subelements.
210+
.حذف/به آن اضافه کنید `<option>` subelements را از `selected` property برای چندین مقدار انتخاب شده، از روش اول برای تنظیم مقادیر استفاده کنید
211211
212-
Here's an example of how to get selected values from a multi-select:
212+
:مقدار انتخاب‌شده را به دست آوریم ،multi-select اینجا یک مثال داریم از اینکه چگونه از یک
213213
214214
```html run
215215
<select id="select" *!*multiple*/!*>
@@ -219,7 +219,7 @@ Here's an example of how to get selected values from a multi-select:
219219
</select>
220220
221221
<script>
222-
// get all selected values from multi-select
222+
// multi-select گرفتن تمام مقادیر انتخاب‌شده از
223223
let selected = Array.from(select.options)
224224
.filter(option => option.selected)
225225
.map(option => option.value);
@@ -228,11 +228,11 @@ Here's an example of how to get selected values from a multi-select:
228228
</script>
229229
```
230230
231-
The full specification of the `<select>` element is available in the specification <https://html.spec.whatwg.org/multipage/forms.html#the-select-element>.
231+
.موجود است <https://html.spec.whatwg.org/multipage/forms.html#the-select-element> در مشخصات `<select>` element مشخصات کامل
232232
233-
### new Option
233+
### جدید Option
234234
235-
In the [specification](https://html.spec.whatwg.org/multipage/forms.html#the-option-element) there's a nice short syntax to create an `<option>` element:
235+
:وجود دارد <option>` element کوتاه و زیبا برای ایجاد یک syntax یک [مشخصات](https://html.spec.whatwg.org/multipage/forms.html#the-option-element) در
236236
237237
```js
238238
option = new Option(text, value, defaultSelected, selected);

0 commit comments

Comments
 (0)