Reputation: 14490
I'm trying to set the this
of which is an ID to the same string but in class.
For example:
$("#FirstBox").click(function () {
$('.FirstBox').trigger('click');
});
Instead of typing .FirstBox
, how can I set a variable so it's $(this)
in class?
Upvotes: 0
Views: 337