Skip to content

Commit 27c60a9

Browse files
Update article.md
1 parent c9f0f84 commit 27c60a9

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

2-ui/4-forms-controls/2-focus-blur/article.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313

1414
## Events focus/blur
1515

16-
The `focus` event is called on focusing, and `blur` -- when the element loses the focus.
16+
هنگام متمرکز شده از `focus` استفاده می‌شود و `blur` -- برای زمانی که element آن focus را از دست می‌دهد.
1717

18-
Let's use them for validation of an input field.
18+
بیایید برای اعتبارسنجی یک input field از آن‌ها استفاده کنیم.
1919

20-
In the example below:
20+
در مثال زیر:
2121

22-
- The `blur` handler checks if the field has an email entered, and if not -- shows an error.
23-
- The `focus` handler hides the error message (on `blur` it will be checked again):
22+
- کنترل‌کننده‌ی `blur` چک می‌کند که یک email وارد شده است یا نه، و اگر نه -- یک error نشان می‌دهد.
23+
- کنترل‌کننده‌ی `focus` پیام error را پنهان می‌کند (در حالت `blur` دوباره چک می‌شود):
2424

2525
```html run autorun height=60
2626
<style>

0 commit comments

Comments
 (0)