Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 146 lines (130 sloc) 5.449 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146
<form id="form" method="get" action="fixtures/empty.js">
  <input type="text" name="val1" id="input_enabled" value="4" />
  <div>This is not a form element</div>
  <input type="text" name="val2" id="input_disabled" disabled="disabled" value="5" />
  <input type="submit" name="first_submit" value="Commit it!" />
  <input type="submit" name="second_submit" value="Delete it!" />
  <input type="text" name="action" value="blah" />
</form>

<form id="bigform" method="get" action="fixtures/empty.js">
  <div id="inputs">
    <input type="text" name="dummy" id="dummy_disabled" disabled="disabled"/>
    <input type="submit" name="commit" id="submit" />
    <input type="button" name="clicky" value="click me" />
    <input type="reset" name="revert" />
    <input type="text" name="greeting" id="focus_text" value="Hello" />
  </div>

  <!-- some edge cases in serialization -->
  <div id="value_checks">
    <input name="twin" type="text" value="" />
    <input name="twin" type="text" value="siamese" />
    <!-- Rails checkbox hack with hidden input: -->
    <input name="checky" type="checkbox" id="checkbox_hack" value="1" />
    <input name="checky" type="hidden" value="0" />
  </div>

  <!-- all variations of SELECT controls -->
  <div id="selects_wrapper">
    <select name="vu">
       <option value="1" selected="selected">One</option>
       <option value="2">Two</option>
       <option value="3">Three</option>
    </select>
    <select id="multiSel1" name="vm[]" multiple="multiple">
       <option id="multiSel1_opt1" value="1" selected="selected">One</option>
       <option id="multiSel1_opt2" value="2">Two</option>
       <option id="multiSel1_opt3" value="3" selected="selected">Three</option>
    </select>
    <select name="nvu">
       <option selected="selected">One</option>
       <option value="2">Two</option>
       <option value="3">Three</option>
    </select>

    <fieldset id="selects_fieldset">
      <select name="nvm[]" multiple="multiple">
         <option selected="selected">One</option>
         <option>Two</option>
         <option selected="selected">Three</option>
      </select>
      <select name="evu">
         <option value="" selected="selected">One</option>
         <option value="2">Two</option>
         <option value="3">Three</option>
      </select>
      <select name="evm[]" multiple="multiple">
         <option value="" selected="selected">One</option>
         <option>Two</option>
         <option selected="selected">Three</option>
      </select>
    </fieldset>
  </div>

  <div id="various">
    <select name="tf_selectOne"><option selected="selected"></option><option>1</option></select>
    <textarea name="tf_textarea"></textarea>
    <input type="checkbox" name="tf_checkbox" value="on" />
    <select name="tf_selectMany" multiple="multiple"></select>
    <input type="text" name="tf_text" />
    <div>This is not a form element</div>
    <input type="radio" name="tf_radio" value="on" />
    <input type="hidden" name="tf_hidden" />
    <input type="password" name="tf_password" />
    <button name="tf_button"></button>
  </div>
</form>

<form id="form_focus_hidden" style="display: none">
  <input type="text" />
</form>

<form id="form_with_file_input">
  <input type="file" name="file_name" value="foo" />
</form>

<form id="form_empty"></form>

<!-- tabindexed forms -->
<div id="tabindex">
  <form id="ffe">
    <p><input type="text" disabled="disabled" id="ffe_disabled" /></p>
    <input type="hidden" id="ffe_hidden" />
    <input type="checkbox" id="ffe_checkbox" />
  </form>

  <form id="ffe_ti">
    <p><input type="text" disabled="disabled" id="ffe_ti_disabled" /></p>
    <input type="hidden" id="ffe_ti_hidden" />
    <input type="checkbox" id="ffe_ti_checkbox" />
    <input type="submit" id="ffe_ti_submit" tabindex="1" />
  </form>

  <form id="ffe_ti2">
    <p><input type="text" disabled="disabled" id="ffe_ti2_disabled" /></p>
    <input type="hidden" id="ffe_ti2_hidden" />
    <input type="checkbox" id="ffe_ti2_checkbox" tabindex="0" />
    <input type="submit" id="ffe_ti2_submit" tabindex="1" />
  </form>
  
</div>

<form id="form_with_duplicate_input_names" style="display:none">
  <input type="hidden" name="fact" id="fdn_f_1" value="sea-wet" />
  <input type="hidden" name="opinion" id="fnd_o_1" value="sea-cold" />
  <input type="hidden" name="fact" id="fnd_f_2" value="sun-hot" />
  <input type="hidden" name="opinion" id="fnd_o_2" value="sun-ugly" />
</form>

<form id="form_with_inputs_needing_encoding" style="display:none">
  <input type="hidden" name="user[wristbands][ ][nickname]" id="fine_1" value="Hässlich" />
</form>

<form id="form_with_troublesome_input_names">
  <input type="text" name="length" value="foo" />
  <input type="text" name="bar" value="baz" />
</form>

<form id="form_with_multiple_select">
  <input type="text" name="peewee" value="herman" />
  <input type="hidden" name="colors" value="pink" />
  <select name="colors" multiple="multiple">
    <option value="blue" selected>blue</option>
    <option value="red">red</option>
    <option value="green">green</option>
    <option value="yellow" selected>yellow</option>
    <option value="not grey" selected>grey</option>
  </select>
  <select name="number">
    <option value="0">0</option>
    <option value="1">1</option>
    <option value="2" selected>2</option>
    <option value="3">3</option>
  </select>
  <input type="submit" />
</form>
Something went wrong with that request. Please try again.