Validating checkbox in javascript Sky sexy chat lines

validating checkbox in javascript-43

While on the other hand, having a single checkbox without multiple-value selection it would have been straight forward, something like this: Considering multiple-value selection the document.myform[].color.checked or document.myform[].color.length would throw javasript error.

To make it work as expected the javascript code in your validate_form function will need some changes. In line 3 of modified function above we use powerful eval function to evaluate the string passed to it.

You can tell to use any A compatible promise implemention like this: There are already many validation libraries out there today but most of them are very tightly coupled to a language or framework.

The goal of is to provide a cross framework and cross language way of validating data.

The project can be found on Git Hub where you can also find our issue tracker.

Last modified 21-Jan-2017 14:32