File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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
servlet or jsp page with prefilled forms
How to send Parameters from JSP to a Servlet?
jsp form with two submit button
Multiple forms in a single JSP page