Drupal 7 - Input Field and Javascript Events
linuxlover <[email protected]>
| Newsgroups | gmane.comp.php.drupal.devel |
|---|---|
| Message-ID | <[email protected]> |
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
signature.asc
(application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEABECAAYFAk6pdNoACgkQP59E+dxd2+KNxgCfcPlreXDMssKU/WvksuC0o/0U sboAn3Y0F9Xn1cCu6AOw6pDc5bz/WG6d =1q7M -----END PGP SIGNATURE-----