Quantcast
Channel: Adobe Community: Message List - ColdFusion
Viewing all articles
Browse latest Browse all 21760

Re: dynamic check boxes validation

$
0
0

The problem is you are returning true/false before you try to validate the comments field.  Assuming you don't want to do alerts for both the checkbox and the comments field at the same time, then simply remove the

"return true;" statement:

 

if (numChecked === 0) {

                 alert('Please check at least one checkbox');

                return false;

        }


Viewing all articles
Browse latest Browse all 21760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>