First mistake, you forgot to add data-role="listview"
to ul
. Second mistake, you're calling enhancement .listview("refresh")
on ul.ScriptList
which doesn't exist.
The correct markup of a split button is as follows.
<li>
<a href="#">
<h2>Text goes here</h2>
<a href="#"></a> <!-- split button -->
</a>
</li>
You also need to refresh
list-view after deleting an item to updated styles.