The (window.event.cancelbubble) command does not work with firefox, ---- can jQuery help? ----

The (window.event.cancelbubble) command does not work with firefox, ---- can jQuery help? ----

Hi,
I'm working on a little stand alone application in html and came across a compatibility problem.

My problem is: I don't know how I would need use jQuery or if it even works to get this result : (window.event.cancelbubble = true;) <-- this only works in Chrome + Internet Explorer


My code looks roughly like this:

  1. ...
  2.     <script type="text/javascript" src="jquery.js"></script>

  3.     <script type="text/javascript" >

  4.     function toDo(input){
  5.       //do something fancy with the imput
  6.     }
  7. ...


  8. ...
  9. <ul id=g1 onclick="return toDo(input1)" >something<ul id=g2 onclick="return toDo(input2)" >something else</ul></ul>
  10. ...
My problem in different words then above: When I click the "something else" at run time it executes both the child and the parent of the ul tag. I just want to execute what i clicked and nothing else.


            ~Thank you for your help in advance!