Not signed in (Sign In)

SkillShare - A place to discuss Web Standards and Web Design topics

Categories

Vanilla 1.1.9 is a product of Lussumo. More Information: Documentation, Community Support.

  1.  permalink
    Any ideas how to pass value onCharge from select menu option to hidden field input?
    example:

    <select name="">
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    </select>
    <input type="hidden" name="blah" value""/>

    Appriciate any help!

    Best, DS
    •  
      CommentAuthorJohnRiv
    • CommentTimeNov 14th 2006
     permalink
    here's the inline way, ideally you should set this up unobtrusively with event handlers:

    <select name="" onchange="document.forms[0].blah.value = this.value;">
  2.  permalink
    I endup with with if anybody intrested.

    <script>
    function cp() {
    document.form.url.value=document.form.select.value
    }
    </script>
    <select name="select" onChange="cp()">
    <option value="url.html">Event 1</option>
    <option value="url2.html">Event 2</option>
    </select>

    <input type="hidden" name="url">
    Best, DS
Add your comments
    Username Password
  • Format comments as (Help)