Freitag, 12. März 2010

Getting Radio buttons value with Prototype.js

Found nice snippet on rexchung.com/2007/02/22/getting-radio-buttons-value-with-prototypejs/

var typeValue = Form.getInputs('myform','radio','type').find(
function(radio) {
return radio.checked; }
).value;

Keine Kommentare:

Kommentar veröffentlichen