| | |
form validation
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Dec 2007
Posts: 28
Reputation:
Solved Threads: 0
Hi all
On my jsp page i m having two tables..
first table have 14 rows which takes input type=text.
and
my second table is having 9 rows which also takes 9 inputs.
Thus total 23 inputs on a form..
Now when the user click submit, i want to check if total of 20 inputs are fill or less than that..
Means user can input max 20 inputs from both the tables..
plz reply for such validation..
Thanks..
On my jsp page i m having two tables..
first table have 14 rows which takes input type=text.
and
my second table is having 9 rows which also takes 9 inputs.
Thus total 23 inputs on a form..
Now when the user click submit, i want to check if total of 20 inputs are fill or less than that..
Means user can input max 20 inputs from both the tables..
plz reply for such validation..
Thanks..
Hi
try this:
-let an input element is haveing name='name' and id='id'
-get the element by
var elem=document.form1.name
if form1 is name of form
or
var elem=document.getElementById('id');
-after that check elem.value.lenght is 0 or what
-on the basis of above you can check other input element also
-use good logic to do this for all input element
have a nice day !
try this:
-let an input element is haveing name='name' and id='id'
-get the element by
var elem=document.form1.name
if form1 is name of form
or
var elem=document.getElementById('id');
-after that check elem.value.lenght is 0 or what
-on the basis of above you can check other input element also
-use good logic to do this for all input element
have a nice day !
Freedom in the Mind, Faith in the words.. Pride in our Souls...
Indian Developer
http://falaque.wordpress.com/
Indian Developer
http://falaque.wordpress.com/
![]() |
Similar Threads
- PHP Form Validation ??? (PHP)
- sample code for form validation using ajax (JavaScript / DHTML / AJAX)
- Dreamweaver php form validation and redirect (PHP)
- Help on form validation requested. (PHP)
- Simple JavavScript needs email validation (JavaScript / DHTML / AJAX)
- uregnt need of form validation (JSP)
- .net validation/javascript conflict (ASP.NET)
- help with creating form counter (PHP)
- form validation not working (JavaScript / DHTML / AJAX)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: cursor position
- Next Thread: Embedding a PHPBB forum into your website : Problems/Solutions
Views: 1208 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for JavaScript / DHTML / AJAX
ajax ajaxexample ajaxjspservlets array autoplay blackjack browser captcha captchaformproblem cart child class close codes date debugger dependent developer disablefirebug dom editor element embed engine enter events explorer ext file firefox flash focus form forms game gears getselection google gxt hiddenvalue highlightedword hint html ie7 ie8 iframe java javascript javascripthelp2020 jquery jsf jsp jump libcurl maps margin marquee masterpage math media menu object onerror onmouseoutdivproblem onreadystatechange parent passing paypal pdf php player position post programming prototype rated redirect safari scale scriptlets scroll search security size software solutions sources star stars stretch synchronous toggle tweet unicode variables web webkit webservice window \n





