Validation not working: Uncaught TypeError

andypooz 26 Oct, 2012
Uncaught TypeError: Cannot call method 'contains' of undefined

This preventing validation from working on one particular form on a site where validation works for all others (so i don't think its a jquery conflict- tried with tmpl=component). I started with a wizard and then customised the html from there and somehow I think I've messed something up

http://frii-world.co.uk/index.php?option=com_chronoforms&chronoform=change_details

I've done a search for 'cannot contain 'X' of undefined (nothing on this forum) and on the web, and it usually means a file not included, but I don't know how that would be.

I'm wondering if it's about div ids (.. which 'contain' the field??) that I've removed.

If someone could take a look and suggest where I might look I'd really appreciate it

Regards
Andy
GreyHead 26 Oct, 2012
Hi Andy,

I think that the problem is that jQuery isn't loaded and the noConflict() is then causing an error. Try using this instead:
if (typeof jQuery != 'undefined' ) {
  jQuery.noConflict();
}

Bob
This topic is locked and no more replies can be posted.