I'm facing a challenge with jQuery, HTML, and CSS. I'm currently in the process of designing a website for a railway company. The Home page is completed, but I've hit a roadblock on the tickets page. Using just HTML, CSS, and jQuery to build this site, I'm struggling to make the purchase buttons work properly. The issue arises when selecting if you are an adult for one trip, as all the purchase buttons show up instead of just the selected one. I've tried various methods like
$(this).find(".className").show();
, $("tr").find(".className").show();
, and $("this").closest(".classname").show();
, but none seem to be working as expected.
The code snippets below illustrate some of the functionality on the Trips Page:
// Trips Page Functionality
$("input").click(function() {
$("tr").first(".purchase-button").fadeIn(800);
});
//footer functionality
$("#social-media-group").mouseenter(function() {
$(this).find(".facebook-block").attr("src", "assets/icons/facebook-hover.svg");
});
...
... More code snippets follow here ...