|
What is the code to make an alert? multiple ones? please!!!! thanks sooo much!!!
|
|
|
function Validate(yourform)
{
if (yourform.yourfield.value == "0") //this a select with initial option = 0
{ alert("Please select"); yourform.yourfield.focus(); return;
if (yourform.yourfield2.value == "")
{ alert("Please fill the field"); yourform.yourfield2.focus(); return; }
else window.location.href=`otherpage`;
}
invoke in the event onchange or onblur...... i hope this code help it.....
|
|
|
hi nessan,
give me a valuable idea for javascript code.
i`m using that script and it run smoothly.
|
|
|
|
|
|
|
|
|
|