File tree Expand file tree Collapse file tree
2-ui/4-forms-controls/2-focus-blur Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments