By hixster on
Hi Guys,
I am trying to modify some selection list form elements with Javascript. The problem is the default Drupal ID's for these elements seem to be hyphenated ie:
edit-cod-delivery-month
These elements can't be passed to javascript. (obviously jQuery must have some workaround).
How would I change the element to not be hyphenated, seem like this is a low level core function?
regards
Hix
Comments
Anyone ever used JavaScript
Anyone ever used JavaScript to modify a drupal form?
Drupal Web Designers Surrey South East England www.lightflows.co.uk
I can rewrite the entire form
I can rewrite the entire form (most of it) in my own way using the theme overrides, so I don't see a problem.
---
I have created and maintained countless Drupal-powered sites and have made heavy modifications to modules on a site-by-site basis. I am an illustrator, a game developer, and a web developer. I also stream on Twitch in my spare time.