﻿
jQuery.fn.submitonenter = function (submitbutton) {
    $(this).bind('keypress', function (e) {
        var code = (e.keyCode ? e.keyCode : e.which);
        if (code == 13) {
            $.watermark.hideAll();
            $('#' + submitbutton).click();
        }
    });

    return this;
};


jQuery(function () {
    jQuery.support.placeholder = false;
    var test = document.createElement('input');
    if ('placeholder' in test) jQuery.support.placeholder = true;
});
