Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function () {
- $('form').each(function () {
- var self = $(this),
- submits = self.find('[type=submit]');
- self.find('input, textarea, select').bind('change input keydown keypress', function (e) {
- submits.attr('disabled', self[0].checkValidity() ? null : true)
- }).keydown();
- self.find('[type=reset]').click(function () {
- self.find('input, textarea').removeClass('dirty');
- });
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement