Skip to content

Instantly share code, notes, and snippets.

View tim-kos's full-sized avatar

Tim Koschuetzki tim-kos

View GitHub Profile
<div id="drop_zone">Drop files here</div>
<output id="list"></output>
<script>
function handleFileSelect(evt) {
evt.stopPropagation();
evt.preventDefault();
var files = evt.dataTransfer.files; // FileList object.
<link rel="stylesheet" type="text/css" href="http://assets.transloadit.com/css/transloadit2.css" />
<script type="text/javascript">
$(document).ready(function() {
var bypassValidationAndTlBinding = false;
$("#MyForm").submit(function( e) {
if (!bypassValidationAndTlBinding) {
if( $("#firstname").val() != "dan" ) {
alert("the name is not dan");
e.preventDefault()