diff --git a/2-ui/4-forms-controls/1-form-elements/article.md b/2-ui/4-forms-controls/1-form-elements/article.md index 01af1f400..10d1b74e2 100644 --- a/2-ui/4-forms-controls/1-form-elements/article.md +++ b/2-ui/4-forms-controls/1-form-elements/article.md @@ -1,23 +1,23 @@ -# Form properties and methods +# Metode dan properti form -Forms and control elements, such as `` have a lot of special properties and events. +Form dan elemen control, contohnya seperti `` memiliki banyak properti khusus dan event. -Working with forms will be much more convenient when we learn them. +Bekerja dengan form akan lebih mudah ketika kita mempelajarinya. -## Navigation: form and elements +## Navigasi: form dan elemen -Document forms are members of the special collection `document.forms`. +Form dokumen adalah anggota dari koleksi khusus `document.forms`. -That's a so-called "named collection": it's both named and ordered. We can use both the name or the number in the document to get the form. +Itu disebut _"named collection"_: itu keduanya memiliki nama(name) dan terurut(index). Kita bisa menggunakan keduanya baik dengan nama atau nomor pada dokumen untuk mendapatkan form . ```js no-beautify document.forms.my - the form with name="my" document.forms[0] - the first form in the document ``` -When we have a form, then any element is available in the named collection `form.elements`. +Ketika kita mempunyai sebuah form, maka elemen apapun tersedia di dalam _named collection/koleksi nama_ `form.elements`. -For instance: +Misalnya: ```html run height=40
``` -There may be multiple elements with the same name, that's often the case with radio buttons. +Ada suatu saat dimana ada beberapa elemen dengan nama yang sama, hal itu sering terjadi dengan _radio buttons_. -In that case `form.elements[name]` is a collection, for instance: + +Dalam hal tersebut `form.elements[name]`adalah sebuah _collection/koleksi_, misalnya: ```html run height=40