<script>
jQuery(document).ready( init )
function init()
{
var dbnetcombo1 = new DbNetCombo("dbnetcombo1");
with (dbnetcombo1)
{
connectionString = "SamplesDatabase"
sql = "select customerid, companyname from customers order by companyname"
initialize()
}
jQuery("#showSelected").bind("click", showSelectedItems)
}
function showSelectedItems()
{
var a = []
var items = DbNetLink.components["dbnetcombo1"].selectedOption();
for( var i=0; i <items.length; i++)
a.push( items[i].value )
alert( "Selected items: " + a.join(",") )
}
</script>