2 Topics
|
|
this is my javascript for validation of a form .It works perfectly <script type="text/javascript"> function validateForm() { var x=document.forms["contacts-form"]["email"].value; var atpos=x.indexOf("@"); var dotpos=x.lastIndexOf("."); if (atpos<1 || dotpos<atpos+2 || dotpos+2>=x.length) { alert("Not a valid e-mail address"); return false; } var x=document.forms["contacts-form"]["name"].value; if (x==null || x==""||x=="Name:") { alert("First name must be filled … |
|
hi please help me to do that.. i have one form in asp.net. In that, i have one dropdownlist box control and near that one linkbutton "Add", one hidden textbox is there. when i click on Add button dropdown will hide and show textbox in their place. i want to … |
The End.