Jump to content

onblur hide the tr


scvinodkumar

Recommended Posts

i have the below form

 

<form name="tab_form" id="tab_form" action="javascript:tab_text(document.getElementById('tab_form'))">
  <table cellpadding="2" cellspacing="0" width="450" align="center" style="border:1px solid #CCCCCC;">
    <tr>
        <td align="center"><textarea name="test" id="test" onfocus="show_tabs();" cols="40" rows="1" style="width:435px;" /></textarea></td>
    </tr>    
    <tr>
        <td align="left" valign="top" style="padding:5px;">
            <table cellpadding="0" cellspacing="2" width="100%" id="tabs" style="display:none;">        
                <tr>
                    <td align="left" width="250">show tab1 | show tab2 | ...</td>
                </tr>
            </table>
            <table cellpadding="0" cellspacing="2" width="100%" id="tab1" style="display:none;border:1px solid #CCCCCC;">
                <tr><td align="left" width="250">tab1</td></tr>
            </table>
            <table cellpadding="0" cellspacing="2" width="100%" id="tab1" style="display:none;border:1px solid #CCCCCC;">
                <tr><td align="left" width="250">tab2</td></tr>
            </table>
            .
            .
            .
            .
        </td>
    </tr>
   </table>
</form>
<input type='text' name='rrr'>

 

By default, textarea only visible, when user clicks on the textarea, id='tabs' table shown.

 

If user clicks on tab1, it will show tab1 form below it.

 

I have done every thing so far correctly.

 

Now i want to close the tabs or any other form opened(tab1 or tab2,..) should be closed when the user is out the form. ie when the user tries to jump to last text box from textarea or form.

 

I hope u understand any problems. :)

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.