Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- problem with show


IntegrityWebDev - 6:30 pm on Sep 8, 2011 (gmt 0)


I'm not sure if I have this formed incorrectly or if there is a problem elsewhere. I am rather new to jQuery so this is probably simple:

Here is an HTML snippet:
<div class="showanswersnow"><a href="#">Click here to show the answers now.</a></div>

and here is a jQuery snippet:
$('.showtheanswers').click(function() {
$('.ouranswer').show();
});


But when I click this it doesn't display the .ouranswer div.

In another chunk of code i have a countdown time and when it gets to zero the jQuery executes:
$('.ouranswer').show();
and it works there.

Any thoughts?


Thread source:: http://www.webmasterworld.com/javascript/4360126.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com