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

gnindl’s picture

Status: Active » Fixed

Thanks 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.