How to find the span text Achievements, QA , Dept having parent span Talk using Jquery.
IM應該生成動態HTML像下面有不同的父跨度文本並保存LI>跨度值在數據庫jQuery的發現元素
<span class="chntxt">Talk(parent)</span> <div title="" class="elemenaryschool_chn chzn-container chzn-container-multi"> <ul class="chzn-choices"> <li seq="1" subseq="1" id="58" class="search-choice"> <span>Achievements</span> <a rel="3" class="search-choice-close" href="javascript:void(0)"></a></li> <li seq="1" subseq="2" id="59" class="search-choice"> <span>QA</span> <a rel="3" class="search-choice-close" href="javascript:void(0)"></a></li> <li seq="1" subseq="3" id="60" class="search-choice"> <span>Dept</span> <a rel="3" class="search-choice-close" href="javascript:void(0)"></a></li> <li class="search-field"><span contenteditable="true" style="width: 25px;"></span></li> </ul></div>
問題不清楚..需要重新編寫。 –
嘗試從你的最後一個問題作出回答:[jQuery在ul li span中查找元素](http://stackoverflow.com/questions/22712072/jquery-find-element-in-ul-li-span) – Arka