[support] question about jquery selectboxes plugin

Aldo Martinez Selleras aldo at caonao.cu
Mon Dec 6 18:15:21 UTC 2010


If i do this:

$('#class-filter').addOption({'0':' -- ALL -- '},false);
$('#class-filter').ajaxAddOption(Drupal.settings.basePath +
'gallery/class',{},true, my_selectOption);
	
function my_selectOption(){
  $(this).selectOptions( '' + url_class + '', true );
}

alert(url_class); // I ADDED THIS LINE
	
var classification = $('#class-filter').val();

then classification take the correct value, like it needed a delay.




More information about the support mailing list