adding a textbox with html text

R

Rick

Hello,

I've been working at this script for a while and I've run into a
problem. Basically what I'm trying to do is to create a row of three
textboxes with three different names and headers when the user clicks
on a button within the html main window. I'm able to create the three
textboxes, but I'm having trouble creating the headers that describe
the textboxes and how to create the id names (to be later used with SQL
server to save that information to a database). Any ideas? Thanks!!!

Rick

Code:

<script type = "text/javascript">
function add(o)
{
var i = document.createElement("input"), p = o.parentNode;
i.type = "text", p.insertBefore(i,o);
...
(this is repeated twice more to add three text boxes (one i want to
name comment and the other to be named date)
...
p.insertBefore(docuement.createElement("br"),o);
}
</script>
 
R

Rick

hey!

to the left of the textbox...something like

input [ (textbox) ] comment [ (textbox) ] date [ (textbox) ]

hopefully that makes sense. my main goal for this is that i already
have html for the original row of three textboxes, and i want the
javascript to recreate that. if the html code would be helpful i can
also add that to this thread. thanks!

rick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,481
Members
44,900
Latest member
Nell636132

Latest Threads

Top