does just adding an onclick="doFunction();" not work?
<cfinput type="text" value="default" onclick="doFunction(this, this.value);" />
<script type="text/javascript">
function doFunction(ff, ffvalue) {
if (ffvalue == "default") {
ff.value = "";
}
}
</script>
?
On 9/20/06, Scott Hoff <[EMAIL PROTECTED]> wrote:
> I have a text input box and I want to clear out the default values in the
> event that somoene clicks on it and the default values are still entered in
> that text box.
>
> Is there anyway I can recreate the onclick functionality? The onchange
> works, but I really need to clear the box when users click on it.
>
> Thanks all
> Scott
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
http://www.fusionauthority.com/quarterly
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253653
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4