Code

Discussion on JavaScript Form Validation Library

Discussion on JavaScript Form Validation Library

Cart 12 sales

smabukhari supports this item

Supported

4 comments found.

how can i add to:

function changeBGCol(elemID, colour) { var element = document.getElementById(elemID); element.style.background = colour; }

To make form field border red and also add message red as well?

Nevermind. I have done this and it works:

function addMessage(elemID, aText) { var textNode = document.createTextNode(aText); var element = document.getElementById(elemID); }

//clear current values in error para
element.innerHTML = "";
element.appendChild(textNode);
element.style.color = "#F00";

and also:

function changeBGCol(elemID, colour) { var element = document.getElementById(elemID); element.style.background = colour; element.style.border = “1px solid #F00”; }

hi does validate File Upload control, dropdown list. it would be nice if you show a full demo of all the elements. Wil it be responsive

hi, its a javascript validation library hence it can be integrated into any solution be it responsive or not. If you mean elements as in html form elements then it you will need to implement some other framework as this is “validation” library. I have tested this with mootools framework (as in demo provided) and it should work with any other frameworks out there. hopefully this helps.

Regards

I meant to say your demo does not include for radio button, checbbox, file upload, dropdown list etc

ah ok soz! I am sure a simple javascript function that utilizes the functions within the library can achieve this. What you have to do is test for true or false for radio buttons, for dropdown list you can check for empty field or not and file upload is the same. Remember JavaScript is client-side scripting languages so there are limitation specifically on file upload. I might upload a file upload function for PHP which is more advanced so keep looking in my publications. Thanks for your comments. Regards

Excellent script. Good luck with sales :)

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey