Skip to content

Commit 1c0b333

Browse files
authored
Merge pull request #6 from HannaParsa/Events-change,-input,-cut,-copy,-paste
Update article.md
2 parents a4f81fe + 225ba90 commit 1c0b333

1 file changed

Lines changed: 8 additions & 6 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: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
11
# Events: change, input, cut, copy, paste
22

3-
Let's cover various events that accompany data updates.
4-
3+
بیایید event های مختلفی را که همراه با به روز رسانی داده ها هستند، پوشش دهیم.
54
## Event: change
65

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

9-
For text inputs that means that the event occurs when it loses focus.
1013

11-
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:
1214

1315
```html autorun height=40 run
1416
<input type="text" onchange="alert(this.value)">
1517
<input type="button" value="Button">
1618
```
1719

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

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

0 commit comments

Comments
 (0)