Having problems using the down function to find inputs which have been
named as an array.
Example:
<form id="foo" ...>
<input type="text" name="fields[title]"/>
prop = 'fields[title]';
$('foo').down('[name='+ prop +']');
This is related to this post
http://groups.google.com/group/rubyonrails-spinoff...
on 2008-06-13 19:14
on 2008-06-13 19:45
Wrap attribute value in quotes.
Also, it's a good idea to define variables local:
var prop = 'fields[title]';
$('foo').down('[name="'+ prop +'"]');
- kangax