jquery get div by class only if it has code example Example: find class using jquery var myVar = $("#start").find('.myClass').val();