Hi
I have a main.html and an index.html page. The layout of
the page
looks like this, the main sits on top of the page:
----------------------------
main.html - Top of Page
---------------------------
index.html -Middle of Page
---------------------------
I want to have a function in index.html that will have an
array of
cars:
function selectCar{
Array 1 = holden
Array 2 = Ford
Array 3 = Mercedes
}
the main.html will look something like this:
<form name="fmCar" id="fmCar"
method="post" action="">
<table width="100%"
border="0" cellspacing="0"
cellpadding="2">
<tr>
<td><strong>Select
Car</strong>
<selectname="selectCar"id="selectCar&q
uot;>
<option></option>
</select>
<input
name="btnShowCar
type="button" id="btnShowCar"
value="Show CarInfo"
onclick="selectCar(this.form)"/>
</td>
<td
align="right">
<input
name="btnSetDefaultCar"
type="button" id="btnSetDefaultCar"
value="Save this Car as your
Default
Car"onclick="setDefaultCar(this.form)"/>
;
</td>
</tr>
</table>
My question is can this be done?
Greg
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "JavaScript Forum" group.
To post to this group, send email to
JavaScript-Information googlegroups.com
To unsubscribe from this group, send email to
JavaScript-Information-unsubscribe googlegroups.com
For more options, visit this group at http://groups.google.com/group/JavaScript-Information
-~----------~----~----~----~------~----~------~--~---
|