1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

A form dropdown acting as an ajax div trigger???

Discussion in 'JavaScript' started by 123GoToAndPlay, Aug 8, 2007.

  1. #1
    Hi there,

    I was wondering if a dropdown menu could trigger/show an ajax div with some more form textfields

    this must be the trigger
    
    <select>
          <option value="noshow">no ajax</option>
    <option value="show">show ajax</option>
        </select>
    
    Code (markup):
    and this would be the more ajax content div
    
    <div id="ajaxcontent">
    some more form fields
    </div>
    
    Code (markup):

    Any tips, advice
     
    123GoToAndPlay, Aug 8, 2007 IP
  2. 123GoToAndPlay

    123GoToAndPlay Peon

    Messages:
    669
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    hmm, tried this with no succes
    
    <option value="show" onchange="makeRequest('bigimg.php','ajaxcontent')">show ajax</option>
    
    Code (markup):
     
    123GoToAndPlay, Aug 9, 2007 IP