By psy11 on
I have an taxonomy vacabulury with terms. On content creating/editing page terms are shown as checkboxes. I want to add event "onclick" to some checkboxes. How do I can to do this.
I have an taxonomy vacabulury with terms. On content creating/editing page terms are shown as checkboxes. I want to add event "onclick" to some checkboxes. How do I can to do this.
Comments
You will need to add Javascript
If you want to add a Javascript event handler you will need to add Javascript using one of the below methods:
You can then add your javascript to the necessary pages to add the event handler you need.
Shane Thomas
http://codekarate.com
Javascript added
Problem is not in script adding. I added script with drupal_add_js() in theme template.php. I don't know how and where to add event handler
An example
Here is a very basic example I put together.
Shane Thomas
http://codekarate.com