Question : how do I hide and show a form using JS and/or AJAX?

I am writing a comment script where users can add their comments to a blog and/or other users' comments. The form should display when users want to add a comment, and be hidden if they don't.

I am having a hard time getting started, I am looking at AJAX; but not sure if this is the right way to do this.

any help is appreciated.

Answer : how do I hide and show a form using JS and/or AJAX?

or....maybe get fancier... :)  ...You'll need to download http://jqueryjs.googlecode.com/files/jquery-1.2.6.js and save it as jquery.js in the same dir in order to run it...

1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:




Untitled Document




 



Open in New Window Select All
Random Solutions  
 
programming4us programming4us