By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,649 Members | 696 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,649 IT Pros & Developers. It's quick & easy.

adding a textbox with html text

P: n/a
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>

Jan 9 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
do you want to add the header in the text box or above it?

Jan 9 '06 #2

P: n/a
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

Jan 9 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.