SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: java ?

  1. #1
    SitePoint Enthusiast
    Join Date
    Nov 2007
    Posts
    97
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    java ?

    hi bro, help me out....

    how do i change the fieldset when i change the drop list by using java or what?

    ex :
    <select class="inputbox" name="number">
    <option value='one' >One</option>
    <option value='two'> Two</option>
    </select>

    i want to show one.html when i choose One and
    show two.html when i choose Two

  2. #2
    SitePoint Enthusiast
    Join Date
    Nov 2007
    Posts
    97
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    how to submit from via java that have <input type='hidden'> in it ? thanx

  3. #3
    SitePoint Enthusiast
    Join Date
    Nov 2007
    Posts
    97
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yeah, i've got it... here is my solution

    <form name='next'>
    <input type='inputbox' onchange='changeButton'>
    <option value='one'>One
    <option value='two'>Two
    </input>
    </form>

    <script>
    function changeButton() {
    document.next.submit();
    }
    </script>


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
  •