What's the easiest way to add some JavaScript to an add/edit form for a specific content type? (It's not for validation, just visual feedback.)
It looks like I should be able to do this by creating a tpl.php file for the form, then "registering" this in template.php. However, the instructions that I've found for this aren't compatible with a Zen subtheme (http://drupal.org/node/1426038).
Is there another way? I'm not familiar enough with the API to develop my own module for this.
Currently, I'm adding the JavaScript file via page.tpl.php (if it's the relevant form - which I can determine from the page classes) and also overriding theme_radio() in my template.php (to add onClick events to the relevant radio buttons). But I figure there must be a better way....
I did look at Markup (http://drupal.org/project/markup) but need to avoid beta modules if possible.