The o shortcut


#1

it´s useless!
var main = function() {
$("article").click(function( {
$("article").removeClass("current")
$(this).toggleClass("description").hide();
$(this).addClass("current")
$(this).children(".description").show();

$(document).keypress(function(event)
if(event.which ===111) {

$('.current').children('.description'   ).toggle();

}

};

$(document).ready(main);

What am i not seing! >A<


#2

Hi Gatofan,

  1. $("article") should be $('.article') (the dot (.) represents a class, which is different than selecting HTML <article> element)
  2. You've forgotten to close both your $('.article').click(...); and $(document).keypress(...); bits.