src="https://code.jquery.com/jquery-3.5.1.min.js"> $(document).ready(function() { $(".product-row").click(function() { // Hide all info rows $(".info-row").hide(); // Show the info row corresponding to the clicked product row var $infoRow = $(this).next(".info-row"); $infoRow.show(); }); });