This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes displaying multiple rows based on textbox value Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "displaying multiple rows based on textbox value" Watch "displaying multiple rows based on textbox value" New topic
Author

displaying multiple rows based on textbox value

Yell Srik
Ranch Hand

Joined: Mar 10, 2004
Posts: 61
Hi,
I need to acheive the following functionality:

In my HTML form,


Now my requirement is that when the user enters value in the textbox as 1-5 and clicks on the submit button my output should be:

Value1
Value2
value3
value4
value5

if the user enters 1,5 in the textbox the output should be:

value 1
value 5

Can anyone give me an idea on how to implement this functionality in javascript? Thanks in advance
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
You will have to use something like indexOf or split() and also createRow();

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: displaying multiple rows based on textbox value
 
Similar Threads
how to display form element's in line
How to send Parameters from JSP to a Servlet?
servlet or jsp page with prefilled forms
Multiple forms in a single JSP page
jsp form with two submit button