J'ai un div comme ci-dessous:Suppression li lorsqu'aucun href avec jquery de div
<div id="DivInteractive">
<p><strong>INTERACTIVE ONLINE BROCHURE</strong></p>
<ul>
<li><a href="" target="_blank"/></li>
<li><a href="http://www.espireinfo.com" target="_blank">Internship brochure Interactive 2008</a></li>
<li><a href="http://www.google.com" target="_blank">OPUS EU Flyer Interactive 2009</a></li>
<li><a href="http://www.rai.com" target="_blank">2009 PLI Interactive Brochure</a></li>
<li><a href="http://cmsstag/index.aspx" target="_blank">Worldwide brochure Interactive English 2009</a></li>
</ul>
</div>
Maintenant, je veux supprimer le li s'il n'y a pas href venant d'en haut div par jquery en ci-dessus cas lorsque la page sera chargée, il supprime le premier li et ma sortie sera comme indiqué ci-dessous:
<div id="DivInteractive">
<p><strong>INTERACTIVE ONLINE BROCHURE</strong></p>
<ul>
<li><a href="http://www.espireinfo.com" target="_blank">Internship brochure Interactive 2008</a></li>
<li><a href="http://www.google.com" target="_blank">OPUS EU Flyer Interactive 2009</a></li>
<li><a href="http://www.rai.com" target="_blank">2009 PLI Interactive Brochure</a></li>
<li><a href="http://cmsstag/index.aspx" target="_blank">Worldwide brochure Interactive English 2009</a></li>
</ul>
</div>
S'il vous plaît suggèrent l'utilisation jquery
toute solution
Je veux supprimer seulement pour la div id = "DivInteractive" pas pour tous –
Son ne fonctionne pas comme dans ma page, il descend à la page. Je pense que je dois vérifier dans la page complète. –
il peut être la fonction .remove() il ne fonctionne pas –