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:
- ...
- <script type="text/javascript" src="jquery.js"></script>
- <script type="text/javascript" >
- function toDo(input){
- //do something fancy with the imput
- }
- ...
- ...
- <ul id=g1 onclick="return toDo(input1)" >something<ul id=g2 onclick="return toDo(input2)" >something else</ul></ul>
- ...
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!