onchange="this.form.submit();" in the select, and leave the submit button 
off the page.

----- Original Message ----- 
From: "Robert Orlini" <[EMAIL PROTECTED]>
To: "CF-Talk" <[email protected]>
Sent: Wednesday, January 05, 2005 3:58 PM
Subject: SOT: Javascript or CF in drop-down


> In the example below, how would I use Javascript or CF informing a user to 
> please make a selection as opposed to clicking SUBMIT on the title "View 
> Available Reports"?
>
> Thanks as always.
>
> <form method="post" action="test.cfm">
>
> <select name="date">
> <option>View Available Reports</option>
> </select>
>
> <input type="image" src="images/view.gif" name="submit" value="submit">
> </form>
>
> Robert O.
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:189446
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to