I am trying to add a class to an embed element like so:
$(".single-floorplan embed#2").addClass("activeFloorplan");
However this does not work, the class does not get added, I even tried
$(".single-floorplan #2").addClass("activeFloorplan");
still nothing, no class gets added.
Here is the embed object.
<embed src="~/PDFs/floorplans/pdf.pdf" height="500" type='application/pdf' id="2">
How do I add class to embed element.
The embed element is wrapped inside a class called single-floorplan.