我有這個代碼獲取圖像的URL內裏
<li>
<div class="product-container">
<div class="product-imgs">
<img src="https://xxxx.png">
</div>
<div class="product-desc product-desc-top">
<h3>Kitten 1</h3>
<p class="title-desc">This is kitten kitten kitten kitten kitten kitten</p>
</div>
<div class="product-desc product-desc-bottom">
<h4>$ 999</h4>
<p class="count-buyers">1 buyer</p>
</div>
</div>
</li>
我有很多的<li>
,那我想是這樣的條件:
如果我點擊<li>
我想獲取img網址。我也想獲得h3,p,h4,p的內容。
是否有可能使用jQuery處理這種情況?
感謝
在它的當前狀態,你的問題是沒有意義的(對我來說)。如果可能的話,請嘗試重新編寫它,因爲我甚至無法開始理解它足以進行編輯。 – user1596138
是的,完全有可能。發佈你到目前爲止已經試過的.. – techfoobar
@JosiahSouth對不起,我的英語技能不夠好。 :) 我們的朋友Binhvi&cherhan得到了答案。 – Hariawan