Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function(){
- $(":submit").click(function(){
- $('input:text').each(function(){
- if($(this).val().length == 0) {
- if($(this).attr('required') == 'true' ) {
- $(this).attr("placeholder", "You must fill out this field!");
- $(this).attr("style", "background: #FF0");
- }
- }
- });
- $(this).html('Submitting . . . Please wait!');
- $(this).attr('disabled','disabled');
- //setTimeout(function() { $('#proc').submit(); }, 1000);
- return true;});
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement