jQuery finding next “child” and previous “parent” objects

<script type="text/javascript">
...
$parent = $('#yourobject').parent();
$child = $('#yourobject').children(':first');
...
</script>

Leave a Reply