Submitted by kw on
A few words on how to do that in a proper way. I will finish this article soon and write 3 most important things according to JS in Drupal:
- How to add and where to add custom JS code
- once() - the key jQuery extension with AJAX in Drupal
- How to use AJAX in two way communication with module
comming soon :)