Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // let's create variables
- var handle = $("#handle").val();
- var question = $("#question").val();
- var comment = $("#comment").val();
- // are fields blank?
- if (handle == ""){
- $("#handle_error").fadeIn('medium')
- }
- if (question == ""){
- $("#question_error").fadeIn('medium')
- }
- if (comment == ""){
- $("#comment_error").fadeIn('medium')
- }
Add Comment
Please, Sign In to add comment