Testcase for jQuery Ticket 7214

Show sample usage of jQuery.readyWait and that it is indeed working

by jitter

HTML

<script type="text/javascript">
    jQuery.readyWait += 2;
    var go = function () {
        $("#foo").attr("value", " Click me again. So jQuery knows it can be ready ");
        jQuery.ready(true);
    }
</script>
<p><input id="foo" type="button" onclick="go()" value=" Click me twice. So jQuery knows it can be ready " /></p>

JavaScript

go = function() { return false; }
$("#foo").attr({ value: " Mission accomplished ", disabled: true});
alert("jQuery thinks DOM is ready.");