could you please help with the following problem,say i have four text boxes in a form on a web page and the user has entered a name in each of the three text boxes how can i count that three of these text boxes have been accessed
Check the value of each - and see that they are not empty - you could add sophistication by doing a pattern match I guess.
b2 - benbiddington@surf4nix.com
or if you are just interested in how many they used, not whether they are empty or not, you could use something like this:
<script>
var boxes = new Array();
function focused(x)
{
boxes[boxes.length] = x.name;
}
</script>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.