I have some question about jquery selection. In my case, how to match if the option.value equal something, mark a selected for it. Online code here
option.value
selected
try below
$("div#selection select.select").val(num);
if your select box is multiple select, you can try
$("div#selection select.select option").each(function(){ if($(this).val()==num){ $(this).attr("selected", true); } });