-
1. Re: Javascript not working unless user double clicks
jefflogan Jul 12, 2011 1:53 PM (in response to mookie blaylock)The issue is because on the dev site the hidden answers have all been given a class Afaq which has css of display:none which hides all the answers on page load. Whereas the other site there is no class on the answers div, but all the answers have inline styling to hide them.
The javascript works by changing the inline styling of the answer div... the first time it is clicked on the dev site it doesn't find any inline styling so sets some to display none, so that on the second click it begings working again!
so the simplest solution would be either to alter the javascript to change the css class, or to remove the class and add inline styling like on the live site.
Compare the two sites with a tool like firebug for firefox and you should see the difference in HTML markup and the javascript changing the inline styling.
-
2. Re: Javascript not working unless user double clicks
mookie blaylock Jul 13, 2011 10:28 AM (in response to jefflogan)Genius. Thanks.

