permaculture playing cards*
The moose likes HTML, CSS and JavaScript and the fly likes Need HTML And Javascript Code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Need HTML And Javascript Code" Watch "Need HTML And Javascript Code" New topic
Author

Need HTML And Javascript Code

Rajendra Prakash
Ranch Hand

Joined: Sep 10, 2009
Posts: 293
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
Marshal

Joined: Mar 22, 2005
Posts: 39542
    
  27
Are you familiar with HTML and JavaScript? What do you have so far, and where are you stuck making progress?


Ping & DNS - updated with new look and Ping home screen widget
Rajendra Prakash
Ranch Hand

Joined: Sep 10, 2009
Posts: 293
I am new to web development.
Rajendra Prakash
Ranch Hand

Joined: Sep 10, 2009
Posts: 293
<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

Joined: Sep 29, 2008
Posts: 12617

What kind of validation? Which JavaScript library are you using?
Rajendra Prakash
Ranch Hand

Joined: Sep 10, 2009
Posts: 293
want to check whether text boxes contains value or not
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

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

Joined: Jun 07, 2010
Posts: 129

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


VIJINDAS
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need HTML And Javascript Code
 
Similar Threads
Multiline Building in JSP
JSON Syntax error
How to take dynamic values of textboxes to Action class
js code needed !
help needed| Generating struts tag using java script