Skip to content

Commit 225ba90

Browse files
authored
Update article.md
1 parent 2813e05 commit 225ba90

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

  • 2-ui/4-forms-controls/3-events-change-input

2-ui/4-forms-controls/3-events-change-input/article.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,21 @@
33
بیایید event های مختلفی را که همراه با به روز رسانی داده ها هستند، پوشش دهیم.
44
## Event: change
55

6-
The `change` event triggers when the element has finished changing.
6+
در event `change` وقتی که element تغیرات را متوقف می کند، trigger شدن رخ می دهد.
7+
8+
9+
در ورودی های متن به این معنی است که event زمانی رخ می دهد که فوکوس خود را از دست بدهد.
10+
11+
به عنوان مثال، وقتی که در فایل زیر تایپ می کنیم--هیچ event وجود ندارد. اما وقتی تمرکزمان را روی قسمت دیگری ببریم، مثلا، کلیک کردن روی دکمه--آن وقت یک `change` event خواهیم داشت.
712

8-
For text inputs that means that the event occurs when it loses focus.
913

10-
For instance, while we are typing in the text field below -- there's no event. But when we move the focus somewhere else, for instance, click on a button -- there will be a `change` event:
1114

1215
```html autorun height=40 run
1316
<input type="text" onchange="alert(this.value)">
1417
<input type="button" value="Button">
1518
```
1619

17-
For other elements: `select`, `input type=checkbox/radio` it triggers right after the selection changes:
20+
برای باقی element ها: `select`, `input type=checkbox/radio` دقیقا وقتی که selection تغییر می کند trigger می شود:
1821

1922
```html autorun height=40 run
2023
<select onchange="alert(this.value)">

0 commit comments

Comments
 (0)