SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast chavodel8's Avatar
    Join Date
    Jun 2005
    Location
    Utah
    Posts
    72
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Red face create new form element

    First of, my apologies as I know this has to be a , but I've been searching for a while now and nothing, so here goes.

    Question: How do I create a new element in a form using js?

    Idea: I click on an anchor tag which takes me to a js function of 1 argument. The argument is a value. I need to create an element for this value in the form, assign the value to it, and submit it.
    Again, sorry for the faq and thanks for help!


    Edit: Okay, so maybe it wasn't such a FAQ. I resulted to using hidden variables and setting them with the javascript. I am interested in learning how to do the above though if anyone knows?
    Last edited by chavodel8; Jul 21, 2006 at 16:13. Reason: prolonged no response
    -el chavo

  2. #2
    SitePoint Guru
    Join Date
    Nov 2005
    Location
    Midwest
    Posts
    777
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am not exactly sure of on your request but check this post out. It displays how you can dynamically create elements on a form. Maybe it will help you out.

    http://www.sitepoint.com/forums/showthread.php?t=404666


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •