:odd removes bullets in "li" , but :even works correctly, is this bug or do i miss anything?
Hello all,
I created a class
.highlightodd
{
background : #eee;
color : #000;
}
then
<script type="text/javascript">
$(document).ready(function()
{
$(".liHiLite:odd").addClass("highlightodd");
});
</script>
The output works for this following code,
- <ul>
- <li class="liHiLite">li item 1</li>
- <li class="liHiLite">li item 2</li>
- <li class="liHiLite">li item 3</li>
- <li class="liHiLite">li item 4</li>
- <li class="liHiLite">li item 5</li>
- </ul>
But weirdly it removes bullets,
But when i use "even" it works fine and does not remove bullet,
Is this a bug or am i missing anything?
Thank you,