I have two forms both are different and have various name/id. I have added a hide/show code for one of the form which is working fine. But unfortunately the other form is also being affected by that.

The code follows as::FORM 1/FORM 2/FORM 1 JS/

```
    <?php 
       echo '<button class="add" id="add_'.$index.'"><B>Add Answer</B></button>';
       echo '<form style="display:none;" name="answer_'.$index.'" method="post" action="output.php" onClick="refresh()">'; // I dont think openning form from row to row would be nice!
       echo '<input type="hidden" name="questionid" value="'. $row['id'].'"/>';
       echo '<textarea  type="text" class="addtext" name="addtext" required id="addtext_'.$index.'" placeholder="Please type your answer here.."  ></textarea>';
       echo '<button onClick="addsubmit('.$index.');" type="submit" id="addsubmit_'.$index.'" class="addsubmit"><B>Submit</B></button>';
       echo '</form>';
    ?>

    <div id="frm">
        <form action="enjoin2.php" method="POST">
        <p>
            <label class="username" style="font-family:verdana"><B>Username</B></label>
            <input type="text" class="user" name="user" required />
        </p>
        <p>
            <input type="submit" class="login" value="Login" />
            <input type="submit" class="register" value="Register" />
        </p>
        </form>
    </div>

    <script type='text/javascript'>
           $(document).ready(function() {
            $('.add').click(function(e) {
                    e.stopPropagation();
                e.preventDefault();
                $(this).parent().find('form').slideDown('slow');
                $(this).parent().find('form textarea.addtext').focus();
                $(this).hide();
            });

            $('form').click(function(e){
                e.stopPropagation();
            });

            $(window).click(function(e) {
                console.log( $(e.target) );
                if( !$(e.target).is('form') ){
                $('.add').show();
                $('form').slideUp();
              } 

            });
        });
   </script>

```

Any help is appreciated.