JAvascript学習ノート--レコードの追加
1706 ワード
1.inputボックス内のテキストを取得する
name
email
salary
tom
[email protected]
5000
delete
jery
[email protected]
20000
delete
name:
email:
salary:
// submit ID ID
var submit = document.getElementById("addemobutton")
submit.onclick = function () {
// input
var name = document.getElementById("enpname").value
var email = document.getElementById("enpemail").value
var salary = document.getElementById("enpsalary").value
}