Right that reads the values
But what I want to is make an manipulative function based on what I get from it
I already have a script for adding the value I need inside the dropdown but it only manages to handle one action at the time.
So the real questions should be.
How do I set the value to become the wanted value (if it exists though)
that would make several operations run simultanious not one by one
I do not need the dropdown if I could force the:
var 'batch_size_123' to change
[part of Code]
<a href="#" onclick="disable_ajax_links();; new Ajax.Request
('/run/123?current=321&quantities=default',
{asynchronous:true, evalScripts:true,
parameters:Form.Element.serialize($('batch_size_123'))});
equal
<div class='batch'>Times:
<select class="batch_dropdown" id="batch_size_123"
[/part of code]
...
I do not need the dropdown if I could force the:
var 'batch_size_123' to change
...
Why not make the select list a hidden value instead.
Then you could change it at any time and use it anywhere you want.
Code:
<input type="hidden" name="batch_size" id="batch_size" value="0">
...
// later in JS code
...
document.getElementById('batch_size').value = document.getElementById('batch_size_123').value;
// or whatever you want it set to for whatever calculations you wish to perform.
// (which you have yet to specify)
Bookmarks