I'm having a strange problem with a clickable element. Basically I have this:-
<a id="myLink" href="#">
and then click the anchor tag the function fires however if I do this:-
the function doesn't fire. It seems to act as though the spans are being clicked as opposed to the anchor tag which is strange considering an inline onclick works the way I want i.e. as if the anchor tag is being clicked.
The only way I can get it to fire via the second method is to remove the inline spans so it looks like this:-
<a id="myLink" href="#">John Smith</a>
Which is not how I need it.
Can anyone help me out with this please?