Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function validate(which) {
- var form = document.forms[0];
- var textareas = form.select['textarea'];
- var radios = form.select('input[type="radio"]');
- return !(textareas || radios) || (textareas.any(function(t){
- return t.value;
- }) && radios.any(function(r){
- return r.checked;
- }));
- };
Add Comment
Please, Sign In to add comment