我创建了一个气泡,显示我存储在列表中的引号。当我单击气泡时,它会随机从列表中选择另一个引用,但有时会选择它已经显示的引用。我将如何防止它这样做?
<ul class="joke-list">
<li id="quotes">
<span style="color: rgb(0, 0, 0);"><span style="font-size: medium;">Charles Darwin wanted to be a doctor but did not like the sight of blood.</span></span></li>
<li id="quotes">
<span style="color: rgb(0, 0, 0);"><span style="font-size: medium;">Charles Darwin was a member of the Gourmet Club. He ate lots of animals including armadillos, owls and tigers.</span></span></li>
<li id="quotes">
<span style="color: rgb(0, 0, 0);"><span style="font-size: medium;">For his 25th Birthday, Charles Darwin had a mountain named after him in Zimbabwe. </span></span></li>
</ul>
小提琴:http: //jsfiddle.net/FsjkM/236/