you need to create your own custom rule and add this class to both fields.
In js file:
jQuery.validator.addMethod("newRuleOr", function(value, element) { if($('#recomiendaONo').val() == 'Si'){ return $('#emailRecomendado').val() != '' && $('#telefonoRecomendado').val(); } return true; }, "Telefono o mail deben informarse." );
And in your html code you need to add new classes to the fields.
<input class="texto newRuleOr" id="nombreRecomendado" name="nombreRecomendado" type="text" size="30"/> ... <input class="texto newRuleOr" id="emailRecomendado" name="emailRecomendado" type="text" size="30"/>
One more tip: never use a table to style your page, use div, floats and percentage.
source share