ONE PAGE FAQ NOT WORKING !

In javascript and jquery the missing manual ... i have a problem on page 180 (tutorial : A one page faq).

Is javascript a OOP language
Yes, Its a OOP language but in a different Style !

Is javascript a Loose language
Yes, Its a Loose language but in a different Style !

$(document).ready(function() {
$('.ans').hide();
$('.faq h2.ques').toggle(function(){
$(this).next('.ans').fadeIn();
$(this).addClass('plus');
},
function(){
$(this).next('.ans').fadeOut();
$(this).removeClass('minus');
});//toggle
});//ready

Its not working ... i made all CSS and etc by myself ... i dint copy the source code. What is the problem ??
1 person has
this question
+1
Reply