Query posts from a child taxonomy term id

i solved the problem

if(isset($_POST['main_brand_id']))
        {
        $term_id .= $_POST['main_brand_id'];
        $term = get_term( $term_id, 'state' );
        $slug = $term->slug;
        global $post;
        $post_id = $post->ID;
        $args = array( 'post_type' =>'dealers','taxonomy'=>'state', 'term' => $slug );
        $myposts = get_posts( $args );

        foreach( $myposts as $post ) :    setup_postdata($post);
            echo '<option value="'.$post->ID.'">'
                $options .=  the_title();
            echo '</option>';
        endforeach;
        die();
        } // end if

the above piece of code displays the posts titles in drop down on selecting the child taxonomy terms. Go ahead feel free to use the code………..