Can somebody explain why my elements aren't filtering?
this what wrote in a book, and he sad that if false element will be remove and will displayed elements with true :
$('li').filter(function() { return this.innerHTML.match(/^\d+$/)})
I need to filter only li with 14.15 (i want result just li with 14.15)!
http://jsfiddle.net/crew1251/MYXYX/
<ul id="list">
<li>raz</li>
<li>asdf 14.15</li>
<li>tri</li>
<li>chetire_Tri</li>
<li>pyat</li>
</ul>
$('li').filter(function () {
return this.innerHTML.match(/^\d+$/);
});