I'm very new to drupal. I'm using drupal 7 with ckeditor. I've created one block with 3 views (Link, Image, Link) in it and I've wrote jQuery on 2 links. Then, I've developed second block with same type of views and wrote same jQuery for 2 links in this new block.
But I found (in FireFox using FireBug addon) that all links have same node id. views-field-view-node for 1st link and views-field-view-node-1 for second link for both blocks. So when I click on 1 block's 1st link, action fires in both blocks because drupal received same link id for another block also.
How can I change/modify this node id of view? So I can give separate action.
Used jQuery:
drupal_add_js("jQuery(document).ready(function() {
// change slideshow with your view name
jQuery('.view-slideshow .view-content').cycle({
fx: 'fade',
speed: 'fast',
timeout: 3000,
next: '.views-field-view-node-1', // problem is here. This id is same for both block's link
prev: '.views-field-view-node'
});
});", 'inline');
Thanks in advance....