Sean,
I think you have your syntax missed up.
You need:
// initialize
$(#modelFullName).mcDropdown(#modelMenu);
// get a copy of the object
var mc = $(#modelFullName).mcDropdown();
// output the current value
alert(mc.getValue());
-Dan
On Mon, Dec 8, 2008 at 10:07 AM, Sean O [EMAIL
Dan Switzer wrote:
Sean,
The getValue() should do exactly what you need. It returns an array in
the format [value, label]. So the second element in the array is
exactly the value I believe you're after.
-Dan
Dan, thanks. I'm able to get the label using [1], but the behavior is
Sean,
On Fri, Dec 5, 2008 at 2:00 PM, Sean O [EMAIL PROTECTED] wrote:
.getValue() doesn't work, and would only return the rel attribute of
selection anyway. What I need is the displayed text.
Ideas? Thanks.
The getValue() should do exactly what you need. It returns an array in
the format
3 matches
Mail list logo