Thanks Klaus

I tested and this apparently avoid do the click in my combo.
You ask why I am looking for this. I am building an amazing and animate
triple combo like (continent-country-city).
So my solution isnt Ajax. I query my database first and manipulate this data
with JQuery.
But the problem if the user change the first or second option the combos
still selected (but hide).
I cant use empty function because if I use this my DOM will lose the data.
I am trying now install some plugins but if I could use Jquery core function
will be better.

Thank for help.

Regards

Mario



2007/3/24, Klaus Hartl <[EMAIL PROTECTED]>:

MARIO MOURA schrieb:
> Do you have a example?
>
> $("#edit-taxonomy-6").change("value","0");
>
> I am trying back to value=0
>
> Regards
>
> macm

Try this:

$('#edit-taxonomy-6').bind('change', function() {
     this.value = 0;
});

That will select the option that has the value 0. Although that doesn't
seem to make any sense to me. You could as well simply disable the select.


-- Klaus

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/




--
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to