X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Modified contact form, error highlighting not working (https://forum.x-cart.com/showthread.php?t=60185)

tqualizerman 07-14-2011 07:49 PM

Modified contact form, error highlighting not working
 
Hi,

The contact form is built with tables, and I rebuilt it using a div structure instead. It looks great, but unfortunately this has somehow disabled error highlighting. :\

I've been looking through the check_required_fields.tpl/js files but can't find anything to help.

Can anyone offer some advice?

cflsystems 07-15-2011 03:14 AM

Re: Modified contact form, error highlighting not working
 
Required fields are picked up by the class applied to the <td> so if you took it out the js won't work

tqualizerman 07-15-2011 03:32 AM

Re: Modified contact form, error highlighting not working
 
I figured that was at the root of it. Looking through the JS I tried to find the code that located the td/tr tag but couldn't. I expect I can modify the JS to make it work with divs. Any idea where it might be hiding?


All times are GMT -8. The time now is 02:00 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.