select nth child like this I want to select seconds child .
$(this).prev().children[1].removeClass(\"necry\").addClass(\"necry_er\");
And this
what about something like this?
var nec = $(this).parent().find(".necry"); nec.removeClass("necry"); nec.addClass("necry_er");