Yueee Posted September 10, 2009 Share Posted September 10, 2009 Hi, folks: I wrote some codes and created onClick events upon options in a dropdown menu. It works fine in FF and IE, but never works in Safari...I searched online, it seems an old issue years ago, I was thinking if there're any solutions to this problem nowadays? Thanks!! Here is a patch of code: <div id="selectbox"> 2. Select your comparison search: <select id="selector"> <option id="sel" onClick = "OnLoad()">Select the sides...</option> <option id="g_b" onClick = "OnLoad()">Good and Bad</option> <option id="p_n" onClick = "OnLoad()">Positive and Negative</option> <option id="h_u" onClick = "OnLoad()">Healthy and Unhealthy</option> <option id="u_h" onClick = "OnLoad()">Useful and Harmful</option> </select> </div> Quote Link to comment https://forums.phpfreaks.com/topic/173800-onclick-doesnt-work-in-safarihow-to-solve-it/ Share on other sites More sharing options...
haku Posted September 11, 2009 Share Posted September 11, 2009 If you are using an XHTML doctype, then it may be because you are using capital letters in 'onClick'. Quote Link to comment https://forums.phpfreaks.com/topic/173800-onclick-doesnt-work-in-safarihow-to-solve-it/#findComment-916486 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.