In my div I have a child div of class "someClass". I want to access this child by class name, not id.
EDIT: Only in this particular div, not all other divs with the same class
var childOfNamedDiv = $('#namedDiv>.someClass')
var div = $('.someClass');
See jQuery Selectors .
just use a class selector:
$('div>.someClass').toggle()
if you already have a reference to the jquery object that is the parent of the div you want to find:
var parent = $("#someDiv"); // this is the div that you may alread have found earlier var child = parent.children(".someClass");