Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / file / file-input-disabled.html
blob42baaee41875bd7a1284eadf9e03eee6789400ba
1 <html>
2 <head>
3 <title>Testing disabling file input</title>
5 <script language="JavaScript" type="text/javascript">
6 <!--
7 function checkboxClicked(element) {
8 if (element.checked) {
9 document.getElementById("file_input").disabled = false;
10 } else {
11 document.getElementById("file_input").disabled = true;
14 //-->
15 </script>
16 </head>
17 <body>
18 <form>
19 <table>
20 <input name="attach_screenshot" type="checkbox" onClick="checkboxClicked(this);">
21 <b>Attach File</b><br><br>
22 &nbsp;&nbsp;Select File:&nbsp;
23 <input id="file_input" name="thumbnail_file" type="file" disabled="true"><br>
24 </form>
25 </body>
26 </html>