I am looking to obtain the width of each <li>
within the main navigation bar which can be obtained from the main LI. Whilst the below code works it seems to apply the same width to the following LI's rather than detecting it's own individual size.
How would I go about making this dynamic please?
$('.navbar-nav-middle li').width($('.navbar-nav-middle a').parent().width());