Tuesday, 6 August 2013

How to Select Last Child of the Parent Element? – Last Child Selector

To select last child of the parent element last child selector can be used. Example is shown below
$(’#div p:last-child’)
This lets you access the last P tag element present in container with id ‘div’

No comments:

Post a Comment