Is there a simple way in CSS or XSLT to style the last child of a SharePoint 2010 single tier dropdown menu?


You can use jQuery to do that... using XSLT doesn't make sense at all

var option_last = $('#my_select option:last-child').val();

then change the style with

$(option_last).addClass("my class");
  • Isn't there a last child element in XSLT that can be used to apply a different style across a set of menus. – toomanyairmiles Apr 9 '14 at 12:08
  • you could have a common js that does this job automatically everywhere – Salvatore Di Fazio Apr 9 '14 at 12:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.