On Apr 12, 2007, at 11:27 AM, John Eubanks wrote:
> Daniel,
>
> Have an example using the snippet above?
>
> John
Oops, it was onChange(); In this case, it's
function setValue(){
if document.addItem.id == 'other'){
document.getElementById("author_write_in).style.visibility='visible';
}else{
document.getElementById("author_write_in).style.visibility='hidden';
}
return;
}
<SELECT name='id' onChange='setValue();'>
<OPTION value=""> </OPTION>
<OPTION value="other">Other (please enter name below)</OPTION>
</select>
Of course, you should change these to your values.
--
Daniel Kessler
College of Health and Human Performance
University of Maryland
Suite 2387 Valley Drive
College Park, MD 20742-2611
Phone: 301-405-2545
http://hhp.umd.edu
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 by AdobeĀ®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7.
Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV
Archive:
http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:2698
Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15