Upload Form / From URL or Computer

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
nickman013
Forum Regular
Posts: 764
Joined: Sun Aug 14, 2005 12:02 am
Location: Long Island, New York

Upload Form / From URL or Computer

Post by nickman013 »

Hello,

Ive got a form that I would like to have a radio button that hides/shows information.

I want to have them show different things if they are selected.

For example I am making a upload form, I want a radio button to "Upload From CPU" and "Upload from URL" , for uploading pictures. I just need help with getting the radios to show/hide info and uploading a file from URL.

Any help would be great.

Thanks!
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

hook the onchange event on the radio buttons.

Need more of a nudge?
use the onchange to alter the element.style.visibility and/or element.style.display CSS properties to change which is visible.
Post Reply