www.webdeveloper.com
Results 1 to 3 of 3

Thread: [RESOLVED] Submit form

Hybrid View

  1. #1
    Join Date
    Nov 2012
    Posts
    13

    resolved [RESOLVED] Submit form

    Hi, żIt's possible to submit a form when a listbox change?
    I have tried this but does not work

    <form id="form1" name="form1" method="post" action="untitled.php">
    <label for="milista"></label>
    <select name="milista" size="1" id="milista" onchange="submit">


    thanks

  2. #2
    Join Date
    Nov 2012
    Posts
    13
    SOlution: document.forms[0].submit();

  3. #3
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,537
    Well, that's really a HTML/JavaScript question, but yes, it is possible. The onchange event would be something like:
    HTML Code:
    <select name="milista" size="1" id="milista" onchange="this.form.submit();">
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles