David Duymelinck schrieb: > I thought this was easy because it's easy to get the selected value from > a dropdown but i ended up doing something like this > > $('#dropdown').change(function(){ > $.log($(this).find('option').filter(':selected').text()); > }); > > Is there another way to get the text? >
I can only imagine to make that a little shorter: $('#dropdown').change(function() { $.log( $('option:selected', this).text() ); }); -- Klaus _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/