I am attempting to selectively add a border around the .L1Cell
element where the attribute name parent
is equal to Workstation
. However, it appears to be applying the border to all .L1Cell
elements.
Here is the link to the JSFIDDLE
$(document).ready(function () {
var firstLevel = $('#MenuContainer').find('.FirstLevel').attr('parentname','Desktop-Mobile');
firstLevel.find('.L1Cell').attr('catname','Workstation').css('border','3px solid black');
alert('running');
});