I'm wondering where I would put code to take a variable from PHP (used in numbering classes) and store it in a variable that jQuery can access?
Here is an example:
$(".object1-22").hover(function(e){
$(".object2-22").show();
}, function(e) {
$(".object2-22").hide();
});
So in my code, I have two objects. When you hover over the 22nd instance of object1, I want it to only display the 22nd instance of object2.
How could I perform this task?
wp_localize_script.