Salve,

utilizzo TMT Validator per la validazione del form, ho la necessita di rendere obbligatorio un campo soltanto se in una select è selezionato il valore ""ITALIA"

codice:
<form name="Autenticazione" method="post" action="Autenticazione.asp" tmt:validate="true">
<input name="specialmeal" type="checkbox" class="boxes" id="specialmeal" value="true" />
<input type="text" name="newmeal" id="newmeal" tmt:required="dependonbox" tmt:message="Please enter the special meal's name" />
<input type="submit" value="Submit" />
</form>

<script type="text/javascript">
// <![CDATA[
// A custom validation method
function dependonmoving(fieldNode){
	var relatedBox = document.getElementById("moving");
	// The field is required only if the box is checked
	var isRequired = relatedBox.checked;
	if(!isRequired && fieldNode.value == ""){
		return false;
	}
	return true;
}
// ]]>
</script>
in questo modo se il checkbox è attivo il campo text diventa obbligatorio altrimenti no, ma se io volessi sostituire il checkbox con una select e rendere quel campo text obbligatorio soltanto se in una select è selezionato il valore ""ITALIA" ?