JSFiddle - React, Tailwind, and code Playground

by yijiang

HTML

<link rel="stylesheet" href="http://dl.dropbox.com/u/1722364/jsfiddle.css">
<input id="date" type="text" value="abcde" /> <button>Am I valid?</button>

<p id="result"></p>

CSS

p {
    background: #ccc;
    padding: 10px;
    margin-top: 20px;
}

JavaScript

var date = $('#date').datepicker();

$('button').click(function(){
    $('#result').text((date.datepicker("getDate") === null) ? 'invalid' : 'valid');
    return false;
});