Can't select a class in an if statement
Hi, I'm trying to create a form validation that will alert the user if the dropdown lists contains empty values
but nothing happens with my code.
What's wrong with it?
- $('#compute').click(function()
- {
- if ($('.required').val=='')
- {
- alert('Please complete the form before submitting again!');
- }
-
- });
thanks