Help needed in javascript

Joined
Feb 19, 2011
Messages
1
Reaction score
0
Code:
<script>
function checkall()
{
     for(i=0;i<=document.getElementById("columns");i++)
          if(document.ctb.col 'i' .value=="")
        alert("Column name missing");
}
</script>

('ctb' is the form name)
I need to check values for col1, col2, col3.... till the number i get by document.getElementById("columns")...
How can I do that in javascript?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,734
Messages
2,569,441
Members
44,832
Latest member
GlennSmall

Latest Threads

Top