OK, got it done in another way (I'm not sure if I was clear about what
I wanted).
Form id is formEntrega.
Event.observe(window, 'load', function() {
Event.observe('formEntrega', 'submit', function(event){
var selects = this.getElements();
for(var i=0; i selects.length;
2011/8/1 T.J. Crowder t...@crowdersoftware.com:
You can make it just selects like this:
if(selects[i].tagName.toUpperCase() === SELECT
selects[i].getValue() == 0){
Shouldn't that be selects.nodeName.toUpperCase() (instead of tagName)?
--
Martín Marqués
select 'martin.marques' || '@'
El día 1 de agosto de 2011 14:06, Martín Marqués
martin.marq...@gmail.com escribió:
2011/8/1 T.J. Crowder t...@crowdersoftware.com:
You can make it just selects like this:
if(selects[i].tagName.toUpperCase() === SELECT
selects[i].getValue() == 0){
Shouldn't that be