Hi, this is my first post! Hoping somebody might be able to help me out.
I am quite new to jQuery and scripting.
I have got an accordian type menu with 3 menu levels, with a particular level open on load.
The line within the second level is a span which will update the position of a Google Map using an onClick function.
Currently, clicking the span changes the map, but it **does not** activate the correct function of the accordian menu.
Please see this jfiddle: [1] (http://jsfiddle.net/chriscdk/WQhvR/1/)
When you click on Birmingham for example, the map would change (which you cannot see in the fiddle), but the corresponding links do not show. You need to click just off to the right (in the li) in order for that to work.
It is the same for trying to shrink the London menu.
(Both examples above are from the default load) I hope this explanation makes sense! Any help would be appreciated.
Your
<span>elements around Birmingham and London are causing your script to fail theif (this == event.target)condition.