Re: Subject: Javascript Question (Was PHP / Javascript question)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



That

if (df[i].checked=true) {

should of course read

if (df[i].checked==true) {

<sigh !>

Cheers - Neil

<script language="javascript1.2" type="text/javascript">
function validate_form() {
  valid=true;
   df=document.forms["myform"];
      var regex="del\[\d+\]";
      for (i=0; i<df.elements.length) {
         if (df[i].type=="checkbox" && df[i].name.match(regex)) {
            if (df[i].checked=true) {
               valid = false;
               break;
            }
         }
      }
}
</script>

-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux