I am facing difficulties to go ahead coding


#1

hello please this is my current thing right i am facing difficulties to go
ahead coding.... i need your help

var main = function() {
$('.article').click(function() {
$('keypress').keypress()
$('.article').removeClass('current);
$('.description').hide();

   $(this).addclass('current');
   $(this).children('.description').show();
 });

$(document).keypress(function(event) {
   if (event.which === 111)
   $('.current').children('.description').toggle();
     }

});
}
$(document).ready(main);


Still lost on News Reader
#2

Hi @achankeng,

Please post a link to the exercise you're on and the error message you're getting so we can help you.

Also, what's the purpose of line 3? You need to remove that line.


#3

Don't forget to format your code properly too it makes it much easier for all of us. https://discuss.codecademy.com/t/how-do-i-format-code-in-my-posts/28351/2


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.