Skip to content

Commit 096bf67

Browse files
finish article
1 parent d97ae91 commit 096bf67

1 file changed

Lines changed: 17 additions & 17 deletions

File tree

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

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -249,51 +249,51 @@ option = new Option(text, value, defaultSelected, selected);
249249
250250
(`false` یا به سادگی حذف شوند، مقدار پیش‌فرض هر دو) .باشند `false` یا `true` در عمل باید معمولا _هر دو_ مقدار
251251
252-
For instance, here's a new "unselected" option:
252+
برای مثال، اینجا بک "unselected" option داریم:
253253
254254
```js
255255
let option = new Option("Text", "value");
256-
// creates <option value="value">Text</option>
256+
// ایجاد می‌کند <option value="value">Text</option>
257257
```
258258
259-
The same option, but selected:
259+
شده select اما option همان
260260
261261
```js
262262
let option = new Option("Text", "value", true, true);
263263
```
264264
265-
Option elements have properties:
265+
:دارند property یک سری Option elements
266266
267267
`option.selected`
268-
: Is the option selected.
268+
: انتخاب شده است یا نه option
269269
270270
`option.index`
271-
: The number of the option among the others in its `<select>`.
271+
خودش `<select>` در بین بقیه option عدد :
272272
273273
`option.text`
274-
: Text content of the option (seen by the visitor).
274+
(توسط بازدیدکننده دیده می‌شود) option محتوای متنی :
275275
276-
## References
276+
## منابع
277277
278-
- Specification: <https://html.spec.whatwg.org/multipage/forms.html>.
278+
- جزئیات: <https://html.spec.whatwg.org/multipage/forms.html>.
279279
280-
## Summary
280+
## خلاصه
281281
282282
Form navigation:
283283
284284
`document.forms`
285-
: A form is available as `document.forms[name/index]`.
285+
.قابل دسترسی است `document.forms[name/index]` یک فرم با :
286286
287287
`form.elements`
288-
: Form elements are available as `form.elements[name/index]`, or can use just `form[name/index]`. The `elements` property also works for `<fieldset>`.
288+
.کار می‌کنند `<fieldset>` همچنین با `elements` property استفاده کرد. `form[name/index]` قابل دسترسی هستند، یا فقط می‌توان از `form.elements[name/index]` با Form elements عناصر :
289289
290290
`element.form`
291-
: Elements reference their form in the `form` property.
291+
.به فرم خود ارجاع می‌دهند `form` property عناصر در :
292292
293-
Value is available as `input.value`, `textarea.value`, `select.value`, etc. (For checkboxes and radio buttons, use `input.checked` to determine whether a value is selected.)
293+
(.استفاده کنید که مشخص می‌کند یک مقدار انتخاب شده است یا نه `input.checked` از radio buttons و checkboxes برای) و ... قابل دسترسی است. `input.value`، `textarea.value`، `select.value` با value مقدار
294294
295-
For `<select>`, one can also get the value by the index `select.selectedIndex` or through the options collection `select.options`.
295+
.به دست آورد options collection `select.options` یا از طریق `select.selectedIndex` همچنین می‌توان مقدار را با اندیس `<select>` برای
296296
297-
These are the basics to start working with forms. We'll meet many examples further in the tutorial.
297+
این‌ها مبانی شروع کار با فرم‌ها هستند. ما مثال‌های بیشتری را در آموزش خواهیم دید.
298298
299-
In the next chapter we'll cover `focus` and `blur` events that may occur on any element, but are mostly handled on forms.
299+
.را پوشش خواهیم داد که ممکن است در هر عنصری اتفاق بیفتند، اما بیشتر در فرم‌ها مدیریت می‌شوند `blur` و `focus` در فصل بعدی ما

0 commit comments

Comments
 (0)