[development] Drupal 7 - Input Field and Javascript Events

linuxlover linuxloverstaff at gmail.com
Thu Oct 27 15:12:29 UTC 2011


Hi,

I wrote a module and this I call this hook:
	
	agenda0_form_id_form_alter(&$form, &$form_state, $form_id)

I need to set onClick event in an input field, but Drupal 7 add no
events in my input texfield.

$form['field_album_title'][$form['field_album_title']['#language']][0]['#attributes']['onchange']="Javascript: ag_change_txt(this.value,'agenda_title');";


Where is my fault?

Thanks for reply!

ADM
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://lists.drupal.org/pipermail/development/attachments/20111027/dce810dd/attachment.bin 


More information about the development mailing list