Done.
The way is to duplicate the file and put other name as this:
And in the header you need to call it twice, each file has a different name off course.
File one:
//tab effects
var AnotherName = {
init: function() {
$(".tab_item-trespasos").mouseover(function() {
I'm not entirely sure what you're trying to do here, but I think you could have used a comma inside the selector. Like this: ".moving_bg-trespasos, .moving_bg".
Hi guys, I want to use tabbed content in two parts of my site but I don´t know how to point two selectors in the JS.
Please someone can tell me how should I add more than one class on the JS?, here is the code with single class point it.
var TabbedContent = { init: function() {
$(".tab_item-trespasos").mouseover(function() {
}
$(document).ready(function() { TabbedContent.init(); });
What I Need is to add more then one .find( selector here ) or how can I duplicate it to achieve the same effect in two places on the site.
For example, I try this: //tab effects
var TabbedContent = { init: function() {
$(".tab_item-trespasos").mouseover(function() {
}
$(document).ready(function() { TabbedContent.init(); });
But does not work.
Done. The way is to duplicate the file and put other name as this: And in the header you need to call it twice, each file has a different name off course.
File one:
var AnotherName = { init: function() {
$(".tab_item-trespasos").mouseover(function() {
}
$(document).ready(function() { AnotherName.init(); });
var TabbedContent = { init: function() {
$(".tab_item").mouseover(function() {
}
$(document).ready(function() { TabbedContent.init(); });
I'm not entirely sure what you're trying to do here, but I think you could have used a comma inside the selector. Like this:
".moving_bg-trespasos, .moving_bg".