Click Button Get tag id
this Code!
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<button class="btn" id="3" onClick="show(this.id)"> click Me</button>
</body>
</html>
<script >
function show(btn_id){
alert(btn_id);
}
</script>
[kakao map api] 카카오맵 2개 로드시 맵이 정상적으로 로드되지않는 현상 (0) | 2023.04.19 |
---|---|
jsdoc 사용법 How to use jsdoc [Windows] (0) | 2021.07.20 |
how to style property change in js ? (0) | 2019.01.03 |
how to use Iframe / change src in iframe? (0) | 2019.01.03 |
how to button property disable change in javascript or jqury (0) | 2018.12.27 |
javascript current time (0) | 2018.12.27 |