Để trích xuất giá trị của
document.getElementById("yourTextIdValue").textContentVí dụ
Document
Chạy chương trình: lưu file anyName.html(index.html), chuột phải chọn "Open with Live Server" trong VS Code.
Kết quả
Sẽ hiển thị giá trị:

Để trích xuất giá trị của
document.getElementById("yourTextIdValue").textContentDocument
Chạy chương trình: lưu file anyName.html(index.html), chuột phải chọn "Open with Live Server" trong VS Code.
Sẽ hiển thị giá trị:
