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
Your problem starts here
$("div#selection select.select option").each(function(){ if((this).val()==num){
change it to
$("div#selection select.select").each(function(){
if($(this).val()==num){
and all your problem solved. You might want to change the .each to .change if you are thinking of having the script triggered everytime the selection is changed.