Jump to content

AJAX Form Validation, echoing an image with PHP through JavaScript


suttercain

Recommended Posts

Hey Everyone,

 

I am using AJAX to validate a form. I based this form on the code found at this tutorial:

http://particletree.com/features/degradable-ajax-form-validation/

 

The form has three separate files:

index.php (which is the form)

formvalidation.php

validate.js

 

This is my issue:

 

When I fill out a form field and move to the next the text next to that form field changes from "Required" to "Thank You". I instead would like to have two images. A unchecked box and then a checked box (images, not the form checkboxes).

 

Is there any way to do this? I would post my code but it is longer than the example link I posted above because I have included a lot more for fields. So please look at the tutorial and see if you know a way to replace the text with an image.

 

Thanks.

 

SC

 

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.