JSFiddle - React, Tailwind, and code Playground

by ttamminen

HTML

<script src="http://github.com/malsup/form/raw/master/jquery.form.js"></script>
<html>
    <head></head>
    <body>
        <!-- TODO: add proper action and method to the form tag -->
        <form id="myForm">
            <input type="file" name="myFile" id="myFile"/>
            <input type="submit"/>
        </form>
    </body>
</html>

JavaScript

$(document).ready(function () {    
    $('#myFile').change(function () {
        alert('change');
    });
    
    $('#myForm').ajaxForm(function() { 
        alert('ajaxForm');
    });        
});