Jump to content

Help implementing callback function or clearing form values


V

Recommended Posts

I'm having trouble implementing a callback function into a new Jquery comment system I'm working on.

 

This is the main comments page that displays all the comments.

 

http://www.phpriot.com/2973

 

And this http://www.phpriot.com/2972 inserts a new comment into the DB and displays it without refreshing the page. Problem is, the form values aren't cleared up after submitting. I was advised to use a callback function as an alternative to refreshing the page but I'm not sure how to.. Or instead of a callback isn't there a simple code that will clear all form inputs upon clicking submit? :shrug:

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.