Yep, you have the right idea. I would do this:
$(function(){
$('#agentSelect').change(function(){
var element = $('option:selected',this);
// do whatever you need to do with the element
console.debug(element.val());
});
});
On Feb
Thanks, Ryan!
Rick
-Original Message-
From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of Ryan
Sent: Monday, February 09, 2009 1:49 PM
To: jQuery (English)
Subject: [jQuery] Re: Can I use a reference to a select id in a function like
this?
2 matches
Mail list logo