Closed (fixed)
Project:
Nodereference Explorer
Version:
6.x-1.2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
21 Mar 2011 at 13:42 UTC
Updated:
22 Jul 2011 at 13:31 UTC
Hey,
I'm trying to add some attributes to the nodereference_explorer fields like this:
$form[$field_id][0]['#attributes'] = array('onblur' => <js_function>);
but the attribute itself is not rendered (eventually to the HTML).
just as a monitor, if I change the #title (the same way) it works...
Comments
Comment #1
gnindl commentedThanks for pointing this out. Attributes are rendered now enabled by this patch:
http://drupalcode.org/project/nodereference_explorer.git/blobdiff/e16208...
In your specific case you might also consider using Drupal JavaScript behaviors.