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>
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>