Project Build a Random Quote Machine

Hi guys, I need some help to complete the project. My project is working but can’t pass the test. The reason is " Within #quote-box, I can see an element with corresponding id=“text”. " But as you see I have an element with id=“text” under the div with id=“quote-box”. Thanks for help
my code


You are duplicating the inner #text element:

$("#text").html(`<p class="card-text mt-4" id="text">
      <i class="fas fa-quote-left"></i>  ${data[random].text}</p>`);
1 Like

thank you so much. I erased id=“text” from that code you helped me and the test was passed

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.