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’
This lets you access the last P tag element present in container with id ‘div’
No comments:
Post a Comment