Out of curiosity, couldn't you add a event handler to the onchange of
the select element?
<select name = "add_filter" onchange="filter_changed(this);">
<option value="">---Add filters---</option>
<option value="n_ticket">Nº do ticket</option>
....
function filter_changed(e){
var value = $F(e);
if(value == 'n_ticket'){
$('n_ticket').toggle('appear');
$('t_id').enable();
}
....
}
......
On Feb 24, 1:47 pm, Allam <[email protected]> wrote:
> Hi, i'm new in the group and I'm having a problem that i think someone
> could help me here. I have an Effect.toggle in a onclick of a select
> tag that shows a div and enable a form. Over Firefox it works fine,
> but on IE and even on Safari and Chrome it doesn't.
>
> The code is inhttp://pastie.org/841067.
>
> Any help would be great.
>
> Thanks,
>
> Allam
--
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en.