LayoutTests:
[WebKit-https.git] / LayoutTests / fast / forms / file-input-disabled.html
1 <html>
2 <head>
3 <title>Testing disabling file input</title>
4
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;
12         }
13 }
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>