blog
01oct / 2009
var e=document.getElementById('id') e.options[document.getElementById('id').selectedIndex].value
var e=document.getElementById('id')
e.options[document.getElementById('id').selectedIndex].value
App
← Previous post Next post →
Super ! Avec function $(id) { return document.getElementById(id); } On a : $(‘id’).options[$('id').selectedIndex].value et avec un seul appel : e = $(‘id’); e.options[e.selectedIndex].value;
Votre adresse de messagerie ne sera pas publiée. Les champs obligatoires sont indiqués avec *
Nom *
Adresse de contact *
Site web
Commentaire
Vous pouvez utiliser ces balises et attributs HTML : <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
France Télécom et Publicis vont investir 150 millions d'euros dans les start-up IT http://t.co/0xTZ5HKp via @LeNouvelObs 3 months ago
The One Chart You Need To See To Understand Mobile http://t.co/QyHrePFP via @BIR_Internet 3 months ago
http://t.co/V3E87QK2 3 months ago
Super !
Avec function $(id) { return document.getElementById(id); }
On a :
$(‘id’).options[$('id').selectedIndex].value
et avec un seul appel :
e = $(‘id’);
e.options[e.selectedIndex].value;