55 users online (1 members and 54 guests)  


  Results 1 to 5 of 5

Related

  1. Forms    Forum: HTML Forum
    Replies: 6
  2. Sub forms    Forum: HTML Forum
    Replies: 2
  3. Manipulating browser history    Forum: Website Scripts Forum
    Replies: 2
  4. Forms    Forum: HTML Forum
    Replies: 3
  5. Forms    Forum: HTML Forum
    Replies: 1
  1. #1
    deliriousthunder's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Feb 2009
    Posts
    29

    Manipulating forms 'on the fly'

    Hi,

    I have an html form which contains a drop down selection. Further into the form there are a couple of radio selection options.

    The default option of the list is basically "no selection" and it's an optional field. However, if a user chooses something from that list, I need to offer them an additional option within a group of pre-existing radio options further down the page.

    I don't really know javascript so even general pointers would be helpful.

    Thanks.

  2. #2
    jthayne's Avatar

    Status
    Offline
    Join Date
    Aug 2008
    Location
    Texas
    Posts
    508

    Re: Manipulating forms 'on the fly'

    There are two things you want to look at -- "innerHTML" and CSS. You can use JavaScript to alter the CSS of a tag as well as the text within it.

  3. #3
    deliriousthunder's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Feb 2009
    Posts
    29

    Re: Manipulating forms 'on the fly'

    Just ignore this..
    Last edited by deliriousthunder; 07-14-2009 at 09:31 AM. Reason: Stupid mistake

  4. #4
    deliriousthunder's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Feb 2009
    Posts
    29

    Re: Manipulating forms 'on the fly'

    Thanks jthayne, bit of confusion there but I figured it out.

    I don't like javascript much, and my function seems a bit bloated to achieve a relatively simple objective. It's working now though that's the main thing.

  5. #5
    jthayne's Avatar

    Status
    Offline
    Join Date
    Aug 2008
    Location
    Texas
    Posts
    508

    Re: Manipulating forms 'on the fly'

    Glad you got it working. If you want to post the JS, we can take a look at it and see what we can do to simplify it.



Tags for this Thread