This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes HTML, CSS and JavaScript and the fly likes  Create dynamic input text type in a table Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark " Create dynamic input text type in a table " Watch " Create dynamic input text type in a table " New topic
Author

Create dynamic input text type in a table

Gopu Akraju
Ranch Hand

Joined: Jan 13, 2008
Posts: 242
I am trying to create input fields in a table format after getting the info from the user regarding the number of rows. Number of columns remains constant as 2. I am attaching the script as below. I am not able to generate the input fields and throw some javaScript error. I am checking my code in IE6 version. Please let me know what went wrong. Thanks.

Can anyone tell what the mistake is?

Gopu Akraju
Ranch Hand

Joined: Jan 13, 2008
Posts: 242
any expert advice on this?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61082
    
  66

and throw some javaScript error.
I imagine that people are waiting for you to details what the specific error is.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Gopu Akraju
Ranch Hand

Joined: Jan 13, 2008
Posts: 242
My complete program is as below:



My error is pointing at the line cell.appendChild('inpElem'); saying Type mismatch
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Create dynamic input text type in a table