• Post Reply Bookmark Topic Watch Topic
  • New Topic

Using JavaScript to Add Rows to a Table  RSS feed

 
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using the JavaScript to keep adding rows to a table.

I have come up with a draft and it works (see below). However, I cannot figure out some details:

1. How do I create an empty cell which is equivalent to <td><br/></td>

I am uncertain what I use is correct:


2. How do I set my text field with relative measurement "em"?
Temporarily, I use the fixed measurement. But, it is not what I want
to do.


3. How do I put an image right next to my text field? I would like to do
something that is equivalent to the HTML code:


Here I post my draft code:

[ April 02, 2007: Message edited by: JiaPei Jen ]
 
There are 10 kinds of people in this world. Those that understand binary get this tiny ad:
Why should you try IntelliJ IDEA ?
https://coderanch.com/wiki/696337/IntelliJ-IDEA
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!