Burrow
04-21-2003, 07:35 PM
<script>
function Car(Make,Model,Year)
{
this.Make=Make;
this.Model=Model;
this.Year=Year;
}
new Car("Ford","Tempo","1988");
new Car("Dodge","Ram","2003");
new Car("AMC","Gremlin","1980");
</script>
<body>
<form name="Cars">
<input type="radio" name="Car" value=(Problem)>Tempo<br>
<input type="radio" name="Car" value=(Problem)>Ram<br>
<input type="radio" name="Car" value=(Problem)>Gremlin<br><br>
</form>
</body>
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Alright my first question is as you see there are three radio buttons there each with their respective car title next to them.
Any way as you see above the body is a function that calls upon one of the three new Car("Make","Model","Year"); strings.
Anyway, what I need is to set each one of those new Car("Make","Model","Year"); to the value of its respective radio button. I'm not quite sure that it's even possible.
Any help is greatly appreciated.
function Car(Make,Model,Year)
{
this.Make=Make;
this.Model=Model;
this.Year=Year;
}
new Car("Ford","Tempo","1988");
new Car("Dodge","Ram","2003");
new Car("AMC","Gremlin","1980");
</script>
<body>
<form name="Cars">
<input type="radio" name="Car" value=(Problem)>Tempo<br>
<input type="radio" name="Car" value=(Problem)>Ram<br>
<input type="radio" name="Car" value=(Problem)>Gremlin<br><br>
</form>
</body>
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Alright my first question is as you see there are three radio buttons there each with their respective car title next to them.
Any way as you see above the body is a function that calls upon one of the three new Car("Make","Model","Year"); strings.
Anyway, what I need is to set each one of those new Car("Make","Model","Year"); to the value of its respective radio button. I'm not quite sure that it's even possible.
Any help is greatly appreciated.