I have the following list of elements.
<tr id="level_0">
<tr class="level_0_1">
<tr class="level_0_2">
<tr class="level_0_2_1">
<tr class="level_0_2_2">
<tr class="level_0_2_3">
<tr class="level_0_2_3_1">
<tr class="level_0_2_3_2">
I am trying select all the elements that have class level_0_2_X and not level_0_2_X_X
Using the jQuery "starts with" selector I am able to select all the elements that have class level_0_2_X and level_0_2_X_X
$("tr[class^='level_0_2_']").show();
classasid. I edited it accordingly to match your code.