Adding a jQuery interaction with Views Accordion I have a Views Accordion displaying some books under their categories.
I want to add some jQuery interaction, so when the user clicks the triangle of each category, the content will be loaded via jQuery AJAX.
How can I include this functionality? Something like this, though I cannot see any ID identifier associated with the href which opens / closes each of the accordion bellows.

 function mymodule_views_pre_render(&amp;$view) {
     if($view-&gt;name == "categorias"){
         drupal_add_js('jQuery(function() {
             jQuery("#categorias-page-0").click(function(e) {
              // ... AJAX stuff
              });                    
         });', 'inline');
     } // if        
 } // function


Show image below, what I have, and when clicking on each category I would like to perform whatever jQuery actions I'd like.
You have to use $(this) with out working on id/class.

Refer to this link jQuery $(this) Selector with Examples.