javascript - onClick and href conflict in Firefox -


i tried implementing html anchor following:

<a href="#some-id" onclick="showdiv(event)"> 

the code of showdiv():

function showdiv(e) {     jquery("#container").show(1500); } 

inside #container there child node id some-id.

the function showdiv() shows particular hidden element containing child id some-id. intention make anchor button, , when users click it shows element , directs user child id. works fine in chrome, in firefox show element redirection not work. there anyway can fix this?

there similar question here html simple anchor link doesn't work in chrome/firefox think anchor issue firefox doesn't think unique.


Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -