how do i go about getting this dynamic javascript validation working? dynamic javascript validation
here is the non dynamic onsubmit called javascript function of course the query varies in length each time the page is called. <script> function validForm(){ if(document.getElementById('?????').value == 99){ document.getElementById('?????').focus(); alert('Please enter a value'); return false; } else{ return true; } } </script> <cfform method="post" name="tForm" action="some_save.cfm" enctype="multipart/form-data"> <cfoutput query="jobs"> <input name="cp1_#jobid#" type="file" style="margin: 1px 1px" /> </cfoutput> </cfform> any help would be greatly appreciated :) Chris --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~----------~----~----~----~------~----~------~--~---