일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- bulkinsert
- Ajax
- 정보처리산업기사
- vue Carousel
- 부스트코스
- vue.js
- mysql
- Tomcat
- query
- mybatis
- java
- insertAll
- 기출문제
- JQuery
- jsp
- 오라클
- egov
- spring
- 마스킹
- vscode tutorial
- MariaDB
- 구멍가게코딩단
- checkbox
- github
- JSON
- jdbc
- INSERT
- swipe 배너
- NoSQL
- JAXBContext
Archives
- Today
- Total
개발새발
[javaScript] 클릭한 버튼 ID값 가져오기 본문
728x90
반응형
함수에 매개변수로 id값을 보낸 후 alert 띄우기,, 갸꿀?!
<button id="1" onClick="reply_click(this.id)">B1</button>
<button id="2" onClick="reply_click(this.id)">B2</button>
<button id="3" onClick="reply_click(this.id)">B3</button>
<script type="text/javascript">
function reply_click(clicked_id)
{
alert(clicked_id);
}
</script>
728x90
반응형
'[YOGOJOGO]' 카테고리의 다른 글
[script] checkbox value값 db저장 후 출력 (0) | 2020.10.30 |
---|---|
[spring] list에 뿌려진 데이터 excel download (0) | 2020.10.29 |
[mybatis] insert 된 key값으로 update 또는 insert (0) | 2020.10.26 |
정보처리산업기사 기출문제 (0) | 2020.10.16 |
postgreDB -> mariaDB 쿼리변경(함수) (0) | 2020.10.15 |
Comments