I did the script so that I can pass the arguments in a function. Everything seems fine except when I entered all fields, it will check each field instead of only checking one field at a time. As I have 3 "OnClick" button, how do I make each check button to only check its own field...
I am trying to make this function:
function check()
{
for (var i=0;i<document.form1.length;i++){
if (document.form1.elements[i].value=="")
{
alert("Please enter your name.");
document.form1.elements[i].focus();
break;
I used to call it...
I have problems with this code:
If i only called the first form, it will work correctly. But how do I call the second argument and third argument in the same function?
Please advice. THanks.
form name="Form">
Enter a number between 5 and 45: <input type="text"...
I have question about sed. If I have a file and I want to delete all lines in the file except the lines that start with the word "HELLO". How should I make a script using sed command?
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.