• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need HTML And Javascript Code

 
Rajendra Prakash
Ranch Hand
Posts: 293
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need Html code to create 100 text boxes also need javascript code to validate 100 text boxes.
I know we can use array and loop .
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you familiar with HTML and JavaScript? What do you have so far, and where are you stuck making progress?
 
Rajendra Prakash
Ranch Hand
Posts: 293
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to web development.
 
Rajendra Prakash
Ranch Hand
Posts: 293
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<INPUT TYPE="input" NAME="from">Your Email Address<P> . This code will create one text box. I want to create 100
text boxes and do validation for all text boxes.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What kind of validation? Which JavaScript library are you using?
 
Rajendra Prakash
Ranch Hand
Posts: 293
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
want to check whether text boxes contains value or not
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just check the length of the textbox value then; if you need to check against whitespace as well I'd either trim it first or use a regex.
 
vijin das
Ranch Hand
Posts: 129
Firefox Browser Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you have to go for javascript include one js file in your head tag
create function for dynamically creating text controlls and write that to your dom

call this function on body load ... when you are submitting validate it before you submit to server side..googling will help you to get the code
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic