I want to JQuery target the following item and change the TEXT using a dynamic GUID (ruID):
<span class="btn btn-mini emailIntive" data-id="a9c83938-0c2e-4433-a0f0-9aafc1aae541"> Invite </span>
The JQuery code I am using is:
$('.emailIntive' + data('id')=== ruID).text("SENT");
I am getting a ‘data is not defined’ error.
How can I target CLASS NAME + specific data-id using JQuery?
Which would evaluate to something like:
Which will slect an element with the class
somethingand thedata-idvalue ofa9c83938-0c2e-4433-a0f0-9aafc1aae541