Help us understand the problem. What is going on with this article?

[Js]document.getElementById()

document.getElementById()

document.getElementById()とは?

該当するidの要素にアクセスすることができる関数である。
(해당하는id의 요소에 접근할수 있는 함수)

例えば<~id = lucky>という要素がある。document.ElementById("lucky")という文書があったとして<~id = lucky>のところにアクセスができる。
(예를 들어서<~id = lucky>라고 하는 부분이 있을때 document.ElementById("lucky")라고 입력하면 <~id = lucky>에 접근할 수 있다. )

getElementById()の使い方。

element = document.getElementById(id);
(id)はアクセス、操作したい要素のidを入力
((id)는 접근,조작하고자 하는 요소의id을 입력)

実際にコードを書いてみた。(写真あり)

スクリーンショット 2019-09-14 18.07.00.png

スクリーンショット 2019-09-14 18.10.34.png

スクリーンショット 2019-09-14 18.10.54.png

本日はここまで。よくやった。毎日アップするよ〜
(오늘은 여기까지.잘했다.매일매일 업로드 할꺼야~)

Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away