This should work kenton:
in your <head>:
<script>
$('#showCommentBox').click(function() {
$('#addcomment:hidden').slideDown();
});
$('#hideCommentBox').click(function() {
$('#addcomment').slideUp();
});
</script>
And heres the links you need:
<a href="" id="showCommentBox">Show Comment Form</a>
And the hide link, goes inside the div:
<a href="" id="hideCommentBox">Hide Comment Form</a>
On 9/8/06,
kevdotbadger <[EMAIL PROTECTED]> wrote:
Hay, i think you got a lil too complicated for what i want! Im really
greatful for the help and replys BUT all i need is a div (#addcomment) to be
shown(slide down) when a link is clicked. then another link within the div
to slide the div up(slide up).
thanks =)
kenton.simpson wrote:
>
> I'm using nabble for my post. I would seem somethings are not posting
> where
>
> John Resig wrote:
>>
>>> That is correct and the $(function is shorthand. and the [ is require
>>> and the
>>> function will not work with out it.
>>
>> oops by bad!!! I guess I need to review the docs agian.
>>
>> $.ajax("post", "savecomment.cgi", { comment: $("#fldcomment").val()
>> });
>>
>> You only need the [ { name: ..., value: ... } .... ] syntax if the
>> order of the parameters matters to you. And since there's only one,
>> this is a moot point.
>>
>> --John
>>
>> _______________________________________________
>> jQuery mailing list
>> [email protected]
>> http://jquery.com/discuss/
>>
>>
>
>
--
View this message in context: http://www.nabble.com/little-help-tf2235942.html#a6214483
Sent from the JQuery forum at Nabble.com.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
_______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
