SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast nerf's Avatar
    Join Date
    May 2004
    Location
    Sunshine Coast, Australia
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Text change when form option changes...

    Hi there, I have a form with several radio groups, these have different number values. I want it so that the page initially shows '0' then once different radio buttons are clicked the value is instantly changed without refreshing.
    say...
    x = 0
    then radio1 is pressed with value of 50
    so then x=50 and it then shows 50 on the page.

  2. #2
    SitePoint Enthusiast nerf's Avatar
    Join Date
    May 2004
    Location
    Sunshine Coast, Australia
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    so much for the guru's

  3. #3
    SitePoint Evangelist SpaceFrog's Avatar
    Join Date
    Jan 2005
    Location
    Outerspace
    Posts
    511
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    either you put a textbox in the page or you change innerHTML of a div for example ...
    Code:
    <input type='radio' onmouseup="document.getElementById('mydiv').innerHTML.value=this.value" />


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
  •