Javascript: Tabs in an searchsystem?
<p>Well I need a bit help here, i just dont get how i can manage to make that script dynamic.
I like to press one continent, and it opens the correct land - then from the land it should open the correct region -> And from there it should open the correct city.
Also it shouldn't try to open one, if this continent/land/region has no child-> no another tab.</p>

<p>Its my part of an search engine. The Php and HTML doesent need to be shown here, it works right.</p>

<p>I like to make an Tab system with that i could close every box, beside the first one.
That should be the box that contains the continents.
From there you select one point from that box, in example Europa. Then the box that contains the lands from Europa should be visible. Then you can again select the next step, here in example you select now in the second box Europa->Spain Then it should open the box with the content of spain and so on.</p>

<pre><code>    $(document).ready(function(){
        $('#select_land_1').click(function(){
            $('.box_land').hide();
            $('.box_region').hide();
            $('.box_city').hide();
            $('#land_1').show();
            $('#select_region_12').click(function(){
                $('#region_12').show();
                $('#select_city_34').click(function(){
                    $('#city_34').show();
                });
                $('#select_city_35').click(function(){
                    $('#city_35').show();
                });
            });
        });
</code></pre>

<p>The Css looks like that :
<a href="http://img641.imageshack.us/img641/1479/bildnr1error.jpg" rel="nofollow">http://img641.imageshack.us/img641/1479/bildnr1error.jpg</a></p>

<p>Thank you very much for your help :)</p>
