adding a textbox with html text

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Rick

    adding a textbox with html text

    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.create Element("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.creat eElement("br"), o);
    }
    </script>

  • daveyand

    #2
    Re: adding a textbox with html text

    do you want to add the header in the text box or above it?

    Comment

    • Rick

      #3
      Re: adding a textbox with html text

      hey!

      to the left of the textbox...somet hing 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

      Comment

      Working...