질문Q #3097
jquery 질문입니다!
초보프로그래머2015-02-27 11:12:42
초보적인건데, 지금까지 해본적이 없네요 ..
a를 클릭해도, b 클릭이벤트 함수를 호출하고 싶은데,,
자바스크립트로는 function b() {...} 이렇게 있다면 저렇게 b(); 해서 호출을 할텐데,
jquery 는 이런식으로 해본적이 없네요.....
어떤 방법이 있죠...?
$("#a").click(function(e){
b()???;;
})
$("#b").click(function(e){
alert("1234");
})
<script> $(function( ){ $('#a') .bind('click',function(event) { alert('1'); }) .bind('click',function(event) { alert('2'); }) .bind('click',function(event) { alert('3'); }); }); </script>