I am wonder how to check by jQuery if there are some fields empty. If yes I'll show a dialog.

I was trying something like:

```
$('input:text').each(function( index ) {    
    if( $(this).val().length == 0){ 
         ...
    } 
});

```

Unfortunately I saw that for example for `<p:selectOneMenu>` value is always `""`, or what about `p:selectOneRadio`?