aspose 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


Win a copy of Soft Skills this week in the Jobs Discussion 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