Hello. I am fairly new to Prototype. Here's what I want to do. I have
2 select lists. One list (id="featureList") has a list of all
possible feature for a car. The other list (id="feature") is
initially blank. Here's the initial HTML"
<ol><li>
<select id="feature" multiple name="feature" size="5"></select>
<button id="removeFeature" name="removeFeature" value="Remove
Feature"> >>Remove </button>
<button id="addFeature" name="addFeature" value="Add Feature">
<<Add</button>
<select id="featureList" multiple name="featureList" size="5" >
<option value="TV">TV</option>
<option value="XM Radio">XM Radio</option>
<option value="Air Conditioned">Air Conditioned</option>
<option value="Tinted Windows">Tinted Windows</option>
<option value="GPS">GPS</option>
</select>
</li></ol>
When a user clicks on one or more feature from "featureList", I do the
following:
var newOption = new Element('option', { name: feature, id: feature,
text: feature });
$('feature').add(newOption);
So far so good. "feature" will now contain the features selected from
"featureList".
But when the user clicks the "Submit" button on the form, I intercept
the submit and loop through the "feature" attribute, and it is empty!
Visually, the list is populated, but the form, doesn't seem to know
it!
HELP!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---