Skip to content

Instantly share code, notes, and snippets.

Last active Dec 17, 2015
What would you like to do?
<form id="myForm" name="myForm" enctype="multipart/form-data" method="POST"
data-bind="submit: pseudoSubmitForm">
<select data-bind="options: uiTypes,
optionsText: 'typeLabel',
optionsValue: 'typeValue',
value: selectedType,
optionsCaption: 'Choose...'">
<div id="file1" data-bind="visible: showField1">
<p>Select file 1</p>
<input type="file" name="files" data-bind="value: valueField1"/>
<div id="file2" data-bind="visible: showField2">
<p>Select file 2</p>
<input type="file" name="files" data-bind="value: valueField2"/>
<input type="submit" value="Execute" data-bind="enable: enableExecutionButton() "/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment