diff options
| author | Chris Rebert <[email protected]> | 2014-07-23 17:55:12 -0700 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2014-07-23 17:55:12 -0700 |
| commit | 4a98e2d765df3c6a02a8282d942a99c1db6b8ae4 (patch) | |
| tree | ae1599ae990ac36281f0106f4c1b752bab828b78 /docs/_includes/js | |
| parent | 36483af92c2d0be97aa86f16ffcf5f67abf2ed11 (diff) | |
| parent | db352bcc94287bcef015752c059b31dd1d8ee4c3 (diff) | |
| download | bootstrap-4a98e2d765df3c6a02a8282d942a99c1db6b8ae4.tar.xz bootstrap-4a98e2d765df3c6a02a8282d942a99c1db6b8ae4.zip | |
Merge pull request #14191 from twbs/autocomplete-off-btns
Use autocomplete="off" in buttons plugin docs examples
Diffstat (limited to 'docs/_includes/js')
| -rw-r--r-- | docs/_includes/js/buttons.html | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/docs/_includes/js/buttons.html b/docs/_includes/js/buttons.html index ee5b3d71d..a0801b56c 100644 --- a/docs/_includes/js/buttons.html +++ b/docs/_includes/js/buttons.html @@ -44,26 +44,26 @@ <div class="bs-example" style="padding-bottom: 24px;"> <div class="btn-group" data-toggle="buttons"> <label class="btn btn-primary active"> - <input type="checkbox" checked> Option 1 (pre-checked) + <input type="checkbox" autocomplete="off" checked> Option 1 (pre-checked) </label> <label class="btn btn-primary"> - <input type="checkbox"> Option 2 + <input type="checkbox" autocomplete="off"> Option 2 </label> <label class="btn btn-primary"> - <input type="checkbox"> Option 3 + <input type="checkbox" autocomplete="off"> Option 3 </label> </div> </div><!-- /example --> {% highlight html %} <div class="btn-group" data-toggle="buttons"> <label class="btn btn-primary active"> - <input type="checkbox" checked> Option 1 (pre-checked) + <input type="checkbox" autocomplete="off" checked> Option 1 (pre-checked) </label> <label class="btn btn-primary"> - <input type="checkbox"> Option 2 + <input type="checkbox" autocomplete="off"> Option 2 </label> <label class="btn btn-primary"> - <input type="checkbox"> Option 3 + <input type="checkbox" autocomplete="off"> Option 3 </label> </div> {% endhighlight %} @@ -77,26 +77,26 @@ <div class="bs-example" style="padding-bottom: 24px;"> <div class="btn-group" data-toggle="buttons"> <label class="btn btn-primary active"> - <input type="radio" name="options" id="option1" checked> Option 1 (preselected) + <input type="radio" name="options" id="option1" autocomplete="off" checked> Option 1 (preselected) </label> <label class="btn btn-primary"> - <input type="radio" name="options" id="option2"> Option 2 + <input type="radio" name="options" id="option2" autocomplete="off"> Option 2 </label> <label class="btn btn-primary"> - <input type="radio" name="options" id="option3"> Option 3 + <input type="radio" name="options" id="option3" autocomplete="off"> Option 3 </label> </div> </div><!-- /example --> {% highlight html %} <div class="btn-group" data-toggle="buttons"> <label class="btn btn-primary active"> - <input type="radio" name="options" id="option1" checked> Option 1 (preselected) + <input type="radio" name="options" id="option1" autocomplete="off" checked> Option 1 (preselected) </label> <label class="btn btn-primary"> - <input type="radio" name="options" id="option2"> Option 2 + <input type="radio" name="options" id="option2" autocomplete="off"> Option 2 </label> <label class="btn btn-primary"> - <input type="radio" name="options" id="option3"> Option 3 + <input type="radio" name="options" id="option3" autocomplete="off"> Option 3 </label> </div> {% endhighlight %} @@ -144,7 +144,7 @@ $('.btn').button() <div class="bs-callout bs-callout-danger"> <h4>Cross-browser compatibility</h4> - <p><a href="https://github.com/twbs/bootstrap/issues/793">Firefox persists form control states across page loads</a>. A workaround for this is to use <code>autocomplete="off"</code>.</p> + <p><a href="https://github.com/twbs/bootstrap/issues/793">Firefox persists form control states (disabledness and checkedness) across page loads</a>. A workaround for this is to use <code>autocomplete="off"</code>.</p> </div> <h4>$().button('reset')</h4> |
