Hola
Mira, esto es lo que se me ha ocurrido
Código Javascript
:
Ver original<html>
<head>
<Title>DNC tool</Title>
<script type="text/javascript">
var opcion = '';
</script>
</head>
<body>
<form action="dnc_erase.cfm" method="post">
<select id="sel" onchange="opcion=this.options[this.selectedIndex].text;verification1();">
<option value="0">Select a partition</option>
<cfoutput query="dncgetpartitions">
<option value="#librarypartitionid#">#NAME#</option>
</cfoutput>
</select>
<div id="hiddentext" style="display: none;">
<textarea name="comments" id="txtOther" cols="40" rows="5">
Enter the phone numbers here, separated by a comma.
Example:
9182736450,6142478087,etc
</textarea><br>
<input type="submit" value="Submit" OnClick="if(!confirm('Are you sure that you want to add these numbers to the DNC list for ' + opcion)) return false;" />
</form>
<script language="JavaScript">
function verification1()
{
var sel = document.getElementById( 'sel' );
var hiddentext = document.getElementById( 'hiddentext' );
if( sel.options[ sel.selectedIndex ].value != '0')
{
hiddentext.style.display = 'block';
}
else
{
hiddentext.style.display = 'none';
}
}
</script>
</body>
</html>
Suerte