Okay, please ignore...

I simply reversed the quotes... single quotes to encapsulate
javascript and double quotes to encapsulate div id.  Oh, and I
replaced visible with an empty string.

Now it all works.


2009/10/9 Martin Settle <martin.set...@gmail.com>:
> Hi all.
>
> This is, I'm sure, a newbie question, but my eyes are going blurry
> looking at google results.
>
> I want to have a choice made in a select box display the next element
> of the form, which is in a hidden <div>
>
> in my Form class, I have:
>
> $this->widgetSchema['vendor_id']->setAttributes(array(
>              'onChange' =>
> "document.getElementById('purchase_order_table').display=visible"));
>
> However, in the generated html code the single quotes are escaped as
> #039; which of course breaks the javascript.
>
> Is there a simple way around this?
>
> Thanks in advance
> Marti
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to