Question: I've searched and tried different things but can't seem to get the needed effect. I'm very new to jQuery thus need your input. Basically if one of the `.handouts-sidebar` divs is taller than 250px I need to display a **View all** button. There are multiple divs with `.handouts-sidebar` class. Each has a sibling button `.btn-popup` which is initially hidden.

HTML Structure

```
<div class="content-sidebar">
   <div class="handouts-sidebar">September's Handouts</div>
   <a class="btn-popup">View all</a>
</div>
<div class="content-sidebar">
   <div class="handouts-sidebar">October's Handouts</div>
   <a class="btn-popup">View all</a>
</div>
...

<script type="text/javascript">
    var div = jQuery(".handouts-sidebar").height();
    if (div > 245 ) {
      jQuery(".handouts-sidebar").next().show();
    }
</script>

```

Help! Thanks!

Answer: 
CROSS APPLY the split function several times and use different delimiter

```
select  *
from    Tabletemp t
        cross apply DelimitedSplit8K(t.Barcode, ',') a
        cross apply DelimitedSplit8K(a.Item, '/') b
        cross apply DelimitedSplit8K(b.Item, ' ') c

```

Here i am using the DelimitedSplit8K by Jeff Moden
<http://www.sqlservercentral.com/articles/Tally+Table/72993/>
Converting into Xml and Split we can get the result

```
SELECT Itemcode, 
       split.a.value('.', 'nvarchar(1000)') AS Barcode 
FROM   (SELECT Itemcode, 
               Cast('<S>' 
                    + Replace(Replace(Replace(Barcode, '/', ','), ' ', ','), ',' 
                    , 
                    '</S><S>') 
                    + '</S>' AS XML) AS Barcode 
        FROM   #tabletemp) AS A 
       CROSS apply barcode.nodes('S') AS Split(a) 

```

Result

```
 ItemCode   Barcode
 ---------------------
 100001     896633212
 100001     586231478
 100002     639933212
 100002     236232369
 100003     930933212 
 100003     987232369 
 100003     633214589
 100004     940933212

```