#1
  1. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2002
    Location
    The Birth Place of Aviation
    Posts
    297
    Rep Power
    13

    I added a form element to a page via AJAX and cannot retrive the input value


    I added a text input using javascript.

    I then tried to assess the value of the text input using

    document.getElementById('id').value

    but I get a javascript error: Object Required.

    --A question would be, does the document object recognize the input element that was added?

    Port
    "We know that all things work together for good for those who love God, who are called according to his purpose." Romans 8:28
  2. #2
  3. Blowing up trees with my mind.
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Feb 2005
    Location
    Neverland Ranch, minus the touching.
    Posts
    3,382
    Rep Power
    2567
    i do sort of the same thing with a selection box like this

    var myVar=document.areas.namelist.value;

    areas is the form name, namelist is the name of the selection box.

IMN logo majestic logo threadwatch logo seochat tools logo