Re: [Proto-Scripty] Re: Eliminate POST vars before submit

2011-08-01 Thread Martín Marqués
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;

Re: [Proto-Scripty] Re: Eliminate POST vars before submit

2011-08-01 Thread Martín Marqués
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' || '@'

Re: [Proto-Scripty] Re: Eliminate POST vars before submit

2011-08-01 Thread Martín Marqués
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