Deleting unlabeled text from HTML via jquery -


i have html codes below shown in firebug.

<div class="k-tabstrip-wrapper">      <div id="testyeartab" class="yeartab k-widget k-header k-tabstrip" data-bind="source: chuva" data-role="tabstrip" tabindex="0" role="tablist">          first element second lastfirst element second last…          <ul class="k-tabstrip-items k-reset">             <li class="k-item k-state-default k-first" role="tab" aria-controls="testyeartab-1"></li>             <li class="k-item k-state-default" role="tab" aria-controls="testyeartab-2"></li>             <li class="k-item k-state-default" role="tab" aria-controls="testyeartab-3"></li>         </ul>     </div>  </div> 

now, want delete text "first element second lastfirst element second last…" how that? fyi, said text not being placed tags "h1" example.

btw, code above being generated kendotabstrip.

thanks

in situation work

$('#testyeartab').contents().eq(0).remove() 

demo


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -