CSS3 provides
"Nth Child" selector for element selection. In this
Demo, "
We will see the use of Nth selector in CSS3 and Jquery
".
JavaScript/Jquery Array
Index starts from
ZERO(0), But
CSS3 indexing starts from
ONE(1). This cause the problem of selecting an element.
For example, when you select
1st element in Jquery it will select the
2nd element while in CSS3 it will select the
1st element. The HTML markup used for this demo is as below, <ol>
<li>sandeep</li>
<li>sandeep</li>...
Published on November 20, 2013 08:06