Can someone please help me out with stopping bubble effect on onclick events?
I got this:
<script language="javascript">
  function1(){
    alert('test');
  }
  function2(){
    alert('test');
  }
</script>
<div onclick="function1()">
  <span onclick="function2()">test</span>
  blablablabla
</div>
Now when I click the span, I don't want function 1 to start, but just function 2. How to do this? Do I have to edit the function, or add some more global java to this?
 
    