Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more - View Single Post - Passing a variable to two fields
View Single Post
Old 03-05-2010, 01:50 PM   #3 (permalink)
accwebworks
Junior Member
 
Join Date: Mar 2010
Location: NYC
Posts: 9
Default Re: Passing a variable to two fields

Why would you want to pass the same value twice on purpose?
To answer your question. Yes it's possible, copy value from one element to another with javascript.

document.getElementByID("element1").value=document .getElementByID("element2").value

make sure your elements have an ID.
accwebworks is offline   Reply With Quote
Sponsored Links