Hi
I want to check for all elements if they are blank or not
all at once
bcoz i have too many text boxes...
Is there ne javascript method for the form to check this ??
thanks
Hi
I want to check for all elements if they are blank or not
all at once
bcoz i have too many text boxes...
Is there ne javascript method for the form to check this ??
thanks
You can use prototype.js file
Download prototype js file
http://www.phpasks.com/ajax/prototype-framework.html
HTML Code:<Script> function submit_username123_show(){ for(var i=0;i< $('form123').length;i++) { if($('form123')[i].type=='textbox' && $('form123')[i].value=='') { alert('please filled up'); } } } </script>
Asif
http://www.phpasks.com
Thanks Asif for that quick reply.....
I found this while googling....
thanks againCode:<script> function disableForm(theform) { if (document.all || document.getElementById) { for (i = 0; i < theform.length; i++) { var formElement = theform.elements[i]; if (true) { formElement.disabled = true; } } } } </script>