Skip to main content
Improved spelling. Formatted code.
Source Link
Nisse Engström
  • 4.8k
  • 23
  • 29
  • 44

I would try JqueryjQuery, something like this:

$("#myDiv ul li:last-child").addClass("lastLi");

$("#myDiv ul li:last-child").addClass("lastLi"); 

You would need to make the lastLilastLi class set the lili border width to 0.

Here is a link to the JQuery last-childjQuery last-child selector documentation:  http://docs.jquery.com/Selectors/lastChild

I would try Jquery, something like this:

$("#myDiv ul li:last-child").addClass("lastLi");

You would need to make the lastLi class set the li border width to 0.

Here is a link to the JQuery last-child selector documentation:http://docs.jquery.com/Selectors/lastChild

I would try jQuery, something like this:

$("#myDiv ul li:last-child").addClass("lastLi"); 

You would need to make the lastLi class set the li border width to 0.

Here is a link to the jQuery last-child selector documentation:  http://docs.jquery.com/Selectors/lastChild

better
Source Link
James Lawruk
  • 31.5k
  • 19
  • 135
  • 141

I would try Jquery, something like this:

$("#myDiv ul li:last-child").addClass("lastLi");

You would need to make the lastLi class set the li border width to 0.

Here is a link to the JQuery last-child selector documentation:http://docs.jquery.com/Selectors/lastChild

I would try Jquery, something like this:

$("#myDiv ul li:last-child").addClass("lastLi");

I would try Jquery, something like this:

$("#myDiv ul li:last-child").addClass("lastLi");

You would need to make the lastLi class set the li border width to 0.

Here is a link to the JQuery last-child selector documentation:http://docs.jquery.com/Selectors/lastChild

Source Link
James Lawruk
  • 31.5k
  • 19
  • 135
  • 141

I would try Jquery, something like this:

$("#myDiv ul li:last-child").addClass("lastLi");