I am trying to use the JQuery click event to remove a class and add a different class but my SVG object is not changing the fill as expected.
$(".seat").click(function (event) {
var result = $(this).data("seat");
var state = $(this).data("state");
$(this).removeClass( "seat" ).addClass( "taken" );
result = result +" - "+ state;
$("#statusBox").html(result);
});
My JS fiddle is Here