Skip to content

Commit be844e4

Browse files
authored
Menerjemahkan solution.md --2-focus-blur/4-edit-td-click
1 parent cba4293 commit be844e4

File tree

1 file changed

+4
-5
lines changed
  • 2-ui/4-forms-controls/2-focus-blur/4-edit-td-click

1 file changed

+4
-5
lines changed
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
2-
1. On click -- replace `innerHTML` of the cell by `<textarea>` with same sizes and no border. Can use JavaScript or CSS to set the right size.
3-
2. Set `textarea.value` to `td.innerHTML`.
4-
3. Focus on the textarea.
5-
4. Show buttons OK/CANCEL under the cell, handle clicks on them.
1+
1. Saat diklik -- ganti `innerHTML` dari sel oleh `<textarea>`dengan ukuran yang sama dan tanpa border. Bisa menggunakan JavaScript atau CSS untuk mengatur ukuran yang sesuai.
2+
2. Set `textarea.value` ke `td.innerHTML`.
3+
3. Fokus pada textarea.
4+
4. Tampilkan tombol OK/CANCEL dibawah sel, handle klik pada mereka.

0 commit comments

Comments
 (0)