This is should be close to what you want.

<script type="text/javascript">
        $(function() {
                $("#showform").slideDown();
                $("#hideform").slideUp(function() {
                        $.ajax("post",  "savecomment.cgi", [{
                                name: comment,
                                value:$("#fldcomment").val()
                        }]);
                }); 
        });
</script>

.....

<div id="addcomment" style="display:none">
        <label for="fldcomment">Add Comment Bellow Then Click Done</label>
        <textarea name="comment" id="fldcomment"></textarea>
         Done 
</div>
Add Comment 



kevdotbadger wrote:
> 
> im quite new to juery but iv managed to setup some of the plugs to work
> nicely on my pages (tabs and thickbox)
> 
> im just wounder how i would do this:
> 
> have div (hidden at first) but then slide down when a link is pressed? and
> within the div have anotther link to hide it?
> 
> i know it wont be too hard for you pro's. So thanks in advice.
> 
> i want the div to by called '#addcomment'
> 
> thanks :)
> 

-- 
View this message in context: 
http://www.nabble.com/little-help-tf2235942.html#a6201202
Sent from the JQuery forum at Nabble.com.


_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to