PDA

View Full Version : JS: input into src?



FranzS
17 Sep 2007, 11:20 PM
I was wondering if anyone could tell me how to make javascript recognize radio inputs as src for an image, or not necessarily ... i just need to display user selected options into src of a tag.

By radio input i mean one of these:
<input type=radio name="bgSelect" value="1">Original<br>

i need it to be recognized into a simple:
<img/iframe/wutever src="bgSelect">
with JavaScript because it seems like its possible and it is convinent for my case.