Tank you so much for both tips
----- Original Message -----
From: <[email protected]>
To: "jQuery (English)" <[email protected]>
Sent: Wednesday, March 25, 2009 2:07 PM
Subject: [jQuery] Re: HowTo Select first two characters of an li and hide
them
Something like this maybe
$('div.multiple_options li').each(function(){
var text = $(this).html()
$(this).html( text.replace(/\d+\s+/,'') )
})
But please remove that ugly <br> inside your <li> tags and make them
block elements instead to achieve the same effect.
/ Johan
On 25 Mar, 14:03, 262Rui <[email protected]> wrote:
This is My markup
<div class="multiple_options_caption"> Features</div>
<div class="multiple_options">
<ul><li class="features">11 Classic Design<br></li>
<li class="features">14 Countryside View<br></li>
<li class="features">17 Space for Swimming Pool<br></li>
<li class="features">21 Garage<br></li>
<li class="features">22 Spacious Garden <br></li>
<li class="features">24 Landscaped Garden<br></li>
<li class="features">27 BBQ<br></li>
<li class="features">29 Guest parking </li>
</ul>
</div>
and i would like to hide/remove the first 2 numbers fom my li.features
How can this be achieved?
kind Regards
Rui